#harinth-payments
1 messages · Page 1 of 1 (latest)
hi! can you clarify what that popup is? how do you integrate, which guide are you following? can you share the code you use?
It's a custom popup created from our side
Before calling confirmPayment, I need to update the amount in payment Intent
so you are using the PaymentElement?
Yes
ok
then yes, that integration doesn't really work for use cases where you want to change the amount.
like you say, you need the PaymentIntent upfront when loading the page. You can't update or change the PaymentIntent with completely destroying the PaymentElement and reloading it unfortunately
so it doesn't really work for you use case. Options are
- finalise the amount with the customer before you go to the page/popup with the PaymentElements and design your flow that way
- use the more basic Elements like the CardElement directly, which don't need a PaymentIntent upfront (https://stripe.com/docs/payments/accept-card-payments)
But will this handle real time authentication?
yes it supports 3D Secure.
Here paymentIntent not used?
it is used.
custom, if you want to use Elements in a popup.