airwallex-payment-demo
airwallex-payment-demo copied to clipboard
can't confirm payment intent when adding payment_consent_id
Describe the bug I am trying to make a payment transaction using the customer's existing payment method using consent. I can't confirm payment intent if I add a payment_consent_id instead of element but the confirmPaymentElement() method still looking for the element eventhough I use a payment_consent_id
To Reproduce
- On triggerConfirm() function, update the confirmPaymentIntent to:
confirmPaymentIntent({ payment_consent_id: 'your_payment_consent_id' id: intent_id, client_secret, }, })
Expected behavior This should confirm the paymentIntent
Screenshots
Integration information:
-
language
- [ ] angular
- [ ] cdn
- [ ] node
- [ ] react
- [ ] react-ts
- [ ] ReactNative
- [x] vue
-
element
- [ ] hpp
- [ ] dropIn element
- [ ] card element
- [x] split card element
- [ ] full featured card element
- [ ] applePay element
- [ ] googlePay element Contexts:
-
Browser (e.g. stock browser, safari):
-
Language: