特点 #
Feature | Details |
---|---|
处理货币 | MYR、CNY |
结算货币 | MYR |
最低交易金额 | 0.01MYR |
最高交易金额 | 2500MYR |
退款 | × |
部分退款 | × |
Payment process #
- The client chooses to pay with unionpay and is redirected to unionpay payment page
服务器到服务器集成 #
Using unionpay, customers pay by redirecting from your website or app, finish the payment, then return to your website or app where you get immediate notification on whether the payment succeeds or fails.
概述 #
For direct API intergration, you can create payment intent and get url in only one step, the folllowing is the demo of creating payment intents:
- 创建 PaymentIntent
创建 PaymentIntent #
A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add unionpay to the list of payment method types.
{
"amount":1050,
"currency":"CNY",
"confirm":true,
"payment_method_data" : {
"type":"unionpay"
},
"return_url":"https://your.website"
}
回应
{
"id": "pi_1646357082686881792",
"object": "payment_intent",
"created": 1681357091000,
"currency": "CNY",
"amount": 1050,
"status": "requires_action",
"livemode": true,
"client_secret": "pi_1646357082686881792_secret_WrLaoJjPfB9FaWPfaqsxQyPx",
"next_action": {
"type": "unionpay_handle_redirect",
"unionpay_handle_redirect": {
"url": "https://api.wooshpay.com/v1/receives/paydibs/pay/1646357082686881792"
}
},
"payment_method_types": [
"grabpay",
"mcash",
"boost",
"touchngo",
"unionpay"
],
"confirmation_method": "automatic",
"return_url": "https://your.website",
"payment_method": "pm_1646357082556858368",
"capture_method": "automatic"
}