Subscription
This API allows a merchant to make a purchase transaction while at the same time linking the customer’s card and ABA account to the merchant’s system. Once the purchase is successfully completed, the API will push a token back to the merchant, which can be used for future payments or account verification.
Request
Example: multipart/form-data
Body Params multipart/form-data
Request date and time in UTC format as YYYYMMDDHHmmss.
A unique merchant key which provided by ABA Bank.
A unique transaction identifier for the payment.
Buyer's first name.
Buyer's last name.
Buyer's email.
Buyer's phone.
purchase: for full purchase
Payment Methods for Transactions:
cards: For card payments.abapay: QR payment that can be scanned and paid using ABA PAY.abapay_deeplink: Allows customers to pay using ABA PAY. The payment gateway will respond with a JSON object containingqr_string,abapay_deeplink, andcheckout_qr_url. See the sample response in the response section below.
A base64-encoded JSON array describing the items being purchased.
PHP Sample Code
Note: This is only description/remark. The price or quantity in this info will not be used for calculation or any validation purposes
Shipping fee.
Purchase amount.
Transaction currency of the payment. If you don't pass any value, it will take default value from your merchant profile (the first account's the currency of the first account you registered). Supported values are KHR or USD.
The URL to which PayWay will send the payment notification upon success.
The URL to redirect to after the user closes the payment dialog or when user cancel the payment.
Skip success page can be configure on checkout service level. We also provide option via the API for you to override the setting too. If you don't pass this param, it will follow the configuration on the profile level. Supported value:
0: Don't skip success pages1: Skip success page.
Once you skipe success page, continue_success_url on profile level will be used to redirect user to the specific location if you don't pass value of continue_success_url in the request.
The URL to redirect to after a successful payment.
The deep link for redirecting to the app after a successful payment from ABA Mobile. Must be base64-encoded and include both iOS and Android schemes. This field is mandatory for mobile integration.
PHP Sample Code
Additional information that you want to attach to the transaction. This information will appear in the transaction list, transaction details and export report. It's base64-encoded JSON info.
PHP Sample Code
Information to include when PayWay calls your return URL after a successful payment.
Defines the view type for the payment page.
hosted_view: redirect payer to a new tabpopup: Display as a bottom sheet on mobile web browsers and as a modal popup on desktop web browsers.
If your merchant profile also supports the QR Payment API service, please set this parameter to 0 to use the Checkout service.
Base64-encoded JSON string representing payout details.
PHP Sample Code
The payment's lifetime in minutes, once it exceeds customer will not allow to make payment. Default value is 30 days.
- Min: 3 mins
- Max: 30 days
Supported token flag CITR_FIX.
The field is require when the token flag is CITR_FIX. The possible values are:
1W– Weekly1M– Monthly2M– Every 2 months
Base64 encode of hash hmac sha512 encryption of concatenates values req_time, merchant_id, tran_id, amount, items, shipping, ctid, firstname, lastname, email, phone, type, payment_option, return_url, cancel_url, continue_success_url, return_deeplink, currency, custom_fields, return_params, payout, lifetime, additional_params, skip_success_page, token_flag and frequency with public_key.
PHP Sample Code
Example