airwallex-payment-demo
airwallex-payment-demo copied to clipboard
Failed to chage the return_url when using Split Card payment elements
Describe the bug I have started to integrate the Split Card from airwallex-payment-elements, but failed to change the return_url when 3DS is triggered.
I am testing with https://api-demo.airwallex.com.
To Reproduce
- Create the payment intent with https://api-demo.airwallex.com/api/v1/pa/payment_intents/create
{
"amount": 10,
"currency": "HKD",
"merchant_order_id": "TEST-ID",
"request_id": "REQUEST_ID",
"payment_method_options": {
"card": {
"three_ds_action": "FORCE_3DS"
}
},
"return_url": "http://www.example.com"
}
- Enter the Card Number, Expiry Date, CVC to the split card element
- Confirm the payment intent with
await confirmPaymentIntent({
element: cardNumElement,
id: "INTENT_ID",
client_secret: "CLIENT_SECRET",
payment_method_options: {
card: {
auto_capture: true,
three_ds: {
return_url: 'http://www.example.com'
}
},
}
})
- User is not redirected to http://www.example.com after confirming the payment intent
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Integration information:
-
language
- [x] vue
-
element
- [x] split card element
hey, @emiltsang can you provide your intentId?