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"
}
}
}
Wechat Pay
The user presents their payment QR code, and your POS system captures the code via its scanner.
{
"payment" : {
"wechatpay" : {
"amount" : "1.00",
"merchant_presented_qr_code" : {
"payinfo" : "<The Customer wechat pay QR content>"
}
}
}
}
Alipay
The user presents their payment QR code, and your POS system captures the code via its scanner.
{
"payment" : {
"wechatpay" : {
"amount" : "1.00",
"merchant_presented_qr_code" : {
"payinfo" : "<The Customer alipay QR content>"
}
}
}
}
Webhook
Refer to Order - Webhook