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

NameTypeDescription

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 xxxcallback_url?trans_no={amount}&amount={amount}, then Yuansfer will automatically replace the values of {}. For a list of parameters.

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.

{
    "result": {
        "amount": "13.00",
        "cashierUrl": "http://zk-tys.yunkeguan.com/appTransaction/yuansfer-redirect-record/297553638298245023",
        "currency": "PHP",
        "reference": "test202001011303",
        "settleCurrency": "USD",
        "transactionNo": "297553638298245023"
    },
    "ret_code": "000100",
    "ret_msg": "prepay success "
}

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".

curl -XPOST -H "Content-type: application/json" -d '{
    "merchantNo": "200043",
    "storeNo": "300014",
    "verifySign": "72a2c6ce8497adc8a03a78135618e666",
    "amount": "13",
    "currency": "PHP",
    "settleCurrency": "USD",
    "vendor": "alipay",
    "terminal": "ONLINE",
    "timeout": "30",
    "reference": "test202001011303",
    "ipnUrl": "http://zk-tys.yunkeguan.com/ttest/test",
    "callbackUrl": "http://zk-tys.yunkeguan.com/ttest/test2?status={status}",
    "description": "test+description",
    "note": "test note",
    "osType": "IOS",
    "goodsInfo": [
        {
            "goods_name": "name1",
            "quantity": "quantity1"
        }
    ]
}' 'https://mapi.yuansfer.com/online/v3/secure-pay'

Last updated