Payment
This Payment API allows you to initiate transactions using a token. It supports the following token types: CITI_FLEX, CITO_FLEX, and CITR_FIX.
Request
Example: application/json
Body Params application/json
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.
Your consumer identification number.
PWT (PayWay Token) is a unique token automatically generated by the PayWay system and is used to complete the purchase.
Buyer's first name.
Buyer's last name.
Buyer's email address.
Buyer's phone #.
Total purchase amount (excluding shipping fee). For KHR, the amount must be at least 100. For USD, the amount must be at least 0.01.
Shipping fee. Can be any amount.
The transaction currency for the payment. Supported values are KHR or USD. Please ensure that your merchant profile has these currencies enabled.
Supported value CITU_FLEX, MITU_FLEX and MITR_FIX. Make sure your merchant profile enable to support your business cases.
The type of transaction. The default value is purchase. Supported values:
- pre-auth : Pre-authorization (for pre-purchase).
- purchase : Full purchase transaction.
URL to receive callbacks upon payment completion, encrypted with Base64.
A Base64-encoded JSON array describing the items being purchased. It supports up to 50 line items with no character limit.
PHP Sample Code
If you want to include extra data to associate with the transaction and receive it back after payment, you can use the field parameter. Once the payment is completed, this data will be returned in the response.
Base64-encoded JSON string representing payout details
PHP Sample Code
Additional information you want to attach to the transaction.
This information appears in transaction details, lists, and export reports.
Must be base64-encoded JSON.
PHP Sample Code
Example