QR Code Payment


Available: all payment methods

[!TIP|style:flat]

This payment method is available in store. Customers scan the QR code of merchants to complete payment.

API URL:https://mapi.yabandpay.com/Payments

Method:POST

POST data type:Json

Parameter Type Description Required
user String the UID of cashier account Required
sign String signature Required
method String v3.QRcodePayment Required
time Long timestamp Required
  • Parameter
Parameter Type Description Required
pay_method String offline Required
sub_pay_method String QRcode Required
order_id String order id from Merchant Required
amount String format in cents: € 24.99 should be 24.99, the min amount is EUR 0.10 or CNY 1.00 Required
tip_amount String Tip included in the total amount.For example: 1.02 Optional
currency String ISO 4217, For example EUR, CHF Required
description String order description Required
demo String custom field Optional
timeout String value 0 means 1440 minutes Optional
redirect_url String the redirect URL after payment is completed Optional
notify_url String asynchronous notification url Optional

Signature:

Lexicographical sequence and URL key-value format new string

 "amount=12.1&currency=EUR&demo=test&description=YabandPay test&method=v3.QRcodePayment&notify_url=https://www.yabandpay.com/notify&order_id=202486556498441613&pay_method=offline&redirect_url=https://www.yabandpay.com&sub_pay_method=QRcode&time=1555498137&timeout=0&tip_amount=0.5&user=016683"

Use stringA and secret_key to get stringSign

Get Signature:

"c7b0a82880084b03f943c34b057e6924981a8d5c10a0bd41276250f60df29f9e"

Example Request:

 {
  "user": "016683",
  "sign": "c7b0a82880084b03f943c34b057e6924981a8d5c10a0bd41276250f60df29f9e",
  "method": "v3.QRcodePayment",
  "time": 1555498137,
  "data": {
    "amount": "12.1",
    "currency": "EUR",
    "tip_amount": "0.5",
    "demo": "test",
    "description": "YabandPay test",
    "notify_url": "https://www.yabandpay.com/notify",
    "order_id": "202486556498441613",
    "pay_method": "offline",
    "redirect_url": "https://www.yabandpay.com",
    "sub_pay_method": "QRcode",
    "timeout": "0"
  }
}

Example Response:

{
  "status": true,
  "code": "200",
  "data": {
    "order_id": "202486556498441613",
    "trade_id": "4552eeea-1ae8-1e40-3b4b-802dc2f5686a",
    "amount": "12",
    "currency": "EUR",
    "tip_amount": "0.5",
    "url": "https://pay.yabandpay.com/payments/selectpay/order/ODlmYmYyMzQtN2U1Yy00ZDI5LTM5NWMtNGI4NzljYjI4MDlj",
    "available_payment_methods": "Alipay+, Wechat Pay, iDEAL, UnionPay, QuickPass, Bancontact, Visa, Mastercard, ApplePay, GooglePay",
    "state": "processing"
  },
  "message": ""
}

More Information:

Return results:
  1. On a successful API call, the response will be "status": true.

  2. On a failed API call, the response will be "status": false.

We strongly recommend using both Order Query and Asynchronous Notification simultaneously to synchronize and update payment status, ensuring real-time accuracy of payment information.

Result/Error codes:
Status Code Message
true 200 Success
fales -1000 Internal error
fales -3001 Required field is missing
fales -403 The signature Error
fales -4011 Not support the payment method

results matching ""

    No results matching ""