airwallex-payment-demo icon indicating copy to clipboard operation
airwallex-payment-demo copied to clipboard

Failed to chage the return_url when using Split Card payment elements

Open emiltsang opened this issue 11 months ago • 1 comments

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

  1. 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"
}
  1. Enter the Card Number, Expiry Date, CVC to the split card element
  2. 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'
                            }
                        },
                    }
                })
  1. 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

emiltsang avatar Jul 10 '23 04:07 emiltsang

hey, @emiltsang can you provide your intentId?

shirly-chen-awx avatar Aug 03 '23 03:08 shirly-chen-awx