Link Card
The API returns HTML, allowing users to enter their credit/debit card details (Visa, Mastercard, JCB, and UPI) to link their card to your platform. Once the user has completed the linking process, PayWay will send the account details and token to the merchant via the callback_url.
Refer to the step-by-step integration guide here for detailed instructions.
Request
Example: multipart/form-data
Body Params multipart/form-data
Your request id. The request id shall be unique from your side. This id will be use to obtain the token details in the future. We only return the last record. Length from 5 to 24 characters long, consisting only of letters (uppercase and lowercase) and numbers, with no special characters or spaces allowed.
Request date and time in UTC format as YYYYMMDDHHmmss.
A unique merchant key which provided by ABA Bank.
This is your consumer identification number, which is a unique code used to identify you in the system. The string must be between 5 and 24 characters long and can only contain letters and numbers โ no spaces or special characters.
Possible value CITI_FLEX, CITO_FLEX. Make sue the flag is enable on your profile
Transaction currency, the value is based on merchant profile. Possible value KHR and USD.
Once the user links their card, the token details and other important information will be sent to the URL specified here. This field is optional. If left empty, the system will use the pushback_url defined in your profile by default. If you choose to provide a custom URL, please ensure that the domain is whitelisted in your merchant profile. Must be base64-encoded.
After linking their card, the user will see a success screen with a Done button. Your continue_success_url will be embedded in this button. When the user taps Done, they will be redirected to your platform.
Please ensure that the continue_success_url is base64-encoded.
Base64 encode of hash hmac sha512 encryption.
PHP Sample Code
Example