Yuansfer Checkout
Referred to as secure-pay
SecurePay
POST
https://mapi.yuansfer.com/online/v3/secure-pay
This is used to pay for an order.
Request Body
Name | Type | Description |
---|---|---|
customerNo | string | The user's ID in Yuansfer System, include this parameter if you wish to request a 3D Secure checkout |
merchantNo* | string | Merchant ID |
storeNo* | string | Store ID |
amount* | string | The transaction amount. |
currency* | string | The supported transaction currency is "USD", "CNY", "PHP", "IDR", "KRW", "HKD", "THB", "MYR", "GBP", "BDT", "PKR". |
settleCurrency* | string | When the currency is "GBP", the settlement currency is "GBP". All other currencies settle with "USD". |
vendor* | string | The possble payment channels are "alipay", "wechatpay", "paypal", "venmo", "unionpay", "creditcard" "truemoney", "alipay_hk", "tng", "gcash", "dana", "kakaopay", "bkash", "easypaisa","cashapppay". |
ipnUrl* | string | The asynchronous notification address. The IPN url must be secure. |
callbackUrl* | string | The synchronous callback HTTP address to receive notification messages for events. The callback url follows macro substitution rules like |
reference* | string | The Invoice Number of the transaction in the merchant's system. |
terminal* | string | The possible values are: "ONLINE", "WAP", "YIP", "MWEB". |
description | string | The description of the transaction will be displayed on the invoice. |
note | string | They payment note. |
osType | string | When terminal is WAP or APP, we need this parameter, the possible value is "IOS", "ANDROID". |
timeout | integer | The timeout in minutes. Default values is 120. |
goodsInfo | string | JSON encoded string of an array of items that the customer purchases from the merchant. Special characters are not supported. e.g.: [{"goods_name":"name1", "quantity":"quantity1"}, {"goods_name":"name2", "quantity":"quantity2"}] |
creditType | string | The payment type. This is only required when vendor = creditcard. The values are "normal" or "cit". The default is "normal". |
verifySign* | string | The parameter signature. |
Response
Parameter | Type | Description |
result | object | The result object. |
ret_msg | string | The response return message. |
ret_code | string | The response return code. For more details, see here. |
Result Object
Parameter | Type | Description |
amount | string | The transaction amount. It returns when you use "USD" as the payment currency. |
currency | string | The supported transaction currency is "USD", "CNY", "PHP", "IDR", "KRW", "HKD", "THB", "MYR", "GBP", "BDT", "PKR". |
transactionNo | string | The Transaction ID in the Yuansfer system. |
reference | string | The Invoice Number of the transaction in the merchant’s system. |
cashierUrl | string | The URL to the cashier page. |
settleCurrency | string | When the currency is "GBP", the settlement currency is "GBP". All other currencies settle with "USD". |
Last updated