Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to chage the return_url when using Split Card payment elements #92

Open
2 tasks done
emiltsang opened this issue Jul 10, 2023 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@emiltsang
Copy link

emiltsang commented Jul 10, 2023

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

    • vue
  • element

    • split card element
@emiltsang emiltsang added the bug Something isn't working label Jul 10, 2023
@shirly-chen-awx
Copy link
Contributor

hey, @emiltsang
can you provide your intentId?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants