Redirect URL
When the customer completes the payment (success, failed or expired), the page will go back to your redirect url. Along with the payment result, YabandPay will jump to the redirect url that you have set. Result Data is from json data, which is composed of signature and payment state.
[!TIP|style:flat]
There may be some problems during page redirect process, such as network, hardware, customer close page etc., so the final result should be comfirmed via the Notify API.
Parameter | Type | Description |
---|---|---|
sign | String | signature |
type | String | payment, refund |
user | String | the UID or email of cashier account |
amount | String | the amount submitted |
currency | String | ISO 4217, For example EUR, CHF, the currency submitted |
settlement_amount | String | the settlement amount |
settlement_currency | String | EUR, the settlement currency |
exchange_rate | String | exchange rate |
amount_cny | String | payer paid amount(CNY) |
settlement_rate | String | settlement rate for payer |
order_id | String | order id from Merchant |
transaction_id | String | the transaction id from payment method provider, ie. WeChat Pay or Alipay+ |
acquirer_id | String | the transaction id from institution |
description | String | order description |
createDate | String | create date |
state | String | Processing, Cancelled, Paid, Expired, Verify |
demo | String | custom field |
out_trade_no | String | out trade number |
sub_pay_method | String | payer payment method, ie. WeChat Pay, Alipay+ |
pay_method | String | offline, online |
paid_time | String | paid time |
Example Response:
{
"sign": "52072b58345e90e07627c3a4b9c0402efce086ce95e533375cfa7f25839240cd",
"data": {
"type": "payment",
"user": "016683",
"order_id": "190510140815",
"trade_id": "8a8aa7c7-66d7-e2cc-e2a6-fff7c77aaefd",
"transaction_id": "4200000298201905227377147799",
"acquirer_id": "4200000298201905227377147799",
"amount": "1.00",
"currency": "EUR",
"settlement_amount": "1.00",
"settlement_currency": "EUR",
"exchange_rate": "1",
"amount_cny":"0.77",
"settlement_rate":"7.779779",
"description": "yaband test",
"createDate": "1558510731",
"pay_method": "online",
"state": "paid",
"demo": "test",
"out_trade_no": "a4d7684a-e326-44c1-bea5-0601f7a9b191",
"sub_pay_method" : "WeChat Pay",
"paid_time" : "1603355159"
}
}