#harinth-payments

1 messages · Page 1 of 1 (latest)

thick steppe
#

hi! can you clarify what that popup is? how do you integrate, which guide are you following? can you share the code you use?

eternal parrot
#

It's a custom popup created from our side

#

Before calling confirmPayment, I need to update the amount in payment Intent

thick steppe
#

so you are using the PaymentElement?

eternal parrot
#

Yes

thick steppe
#

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)
eternal parrot
#

But will this handle real time authentication?

thick steppe
#

yes it supports 3D Secure.

eternal parrot
#

Here paymentIntent not used?

thick steppe
#

it is used.

eternal parrot
#

Prebuilt or Custom Payment flow?

thick steppe
#

custom, if you want to use Elements in a popup.

eternal parrot
#

Ok Thanks for your support

#

Based on this you are saying that, it's a work around and not a secure way as the user can update the amount from the client side?

thick steppe
#

I don't think I said that.

#

but it depends what your business is.

#

if you are using this to take donations for example, then naturally you want the customer to be able to choose the amount.