Skip to main content

Direct Payment

Direct Payment refers to a payment method completed directly via API, applicable to specific scenarios—for example, when you already have a mature Qrcode Scanner in place. You can collect the parameters required for payment in your POS system and complete the actual payment through the Wonder OpenAPI.

Refer to Create a transaction API

Payment token

A payment token is a credit card token created via the Customer Wallet API. You can directly use this token for subsequent deductions without requiring the user to manually enter card inform.

{
"payment" : {
"payment_token" : {
"amount" : "1.00",
"token" : "<The customer's payment token>",
"consume_mode" : "sales",
"entry_type" : "mit"
}
}
}

Unified Consumer Presented QR Code

Supports Wallet Apps:

  • Wechat Pay
  • Alipay
  • X Pay
  • Pay Me
  • JKO Pay
  • Union Pay (Includes all of Union Pay family wallets, like BOCPay)
{
"payment" : {
"consumer_presented_qr_code" : {
"code_type" : "qrcode",
"content" : "<The customer's qrcode>"
}
}

}

Webhook

Refer to Order - Webhook