#Mahesh
1 messages · Page 1 of 1 (latest)
confirmPayment and it opens apple pay or google pay? Are you using Payment Element?
Um when you update the PaymentIntent, its client secret has already been supplied into the PaymentElement, correct?
- i create pi on server
- initialise client with client secret
- Some api to server & it will update the the pi
- after this api, now i'm calling
confirmPaymenton client
so if i update pi in backend, do i need to refresh payment elements?
when i test with other payment like ideal, giropay i don't see this issue. Only for wallets i'm having this
Umm I see. 1 min
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay
If you update the amount of a PaymentIntent, you must fetch updates from the server to see the new amount in the wallet’s payment modal.
It's mentioned here
Literally you need to call elements.fetchUpdates();
thanks, i will try this