airwallex / airwallex-payment-demo

Airwallex payment element integration demo
39 stars 24 forks source link

can't confirm payment intent when adding payment_consent_id #105

Open leesegundo opened 8 months ago

leesegundo commented 8 months ago

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

  1. 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 image

Integration information: