#l3ash9i98

1 messages · Page 1 of 1 (latest)

vocal tuskBOT
hazy olive
#

What specifically are you trying to do?

young seal
#

Ive created a cusstom payment form, it works, with credit cards because i added CardElement

#

NOw i want to add bank account details to make payment too

young seal
hazy olive
young seal
#

So change the wole design

#

And add the payment element

#

I've tried, i think i have to makea call to my backend to get the secret key right ?

hazy olive
young seal
#

Yeah

#

But the diffrence is that on the CardElement i just had to specify the key on my react app and then send details to backend

#

With payment element i have to make a resuest to the backend

#

Thats it right ?

hazy olive
#

I'm not sure what you're referring to. The integration paths are largely the same:

  • You create a Payment Intent on your server backend with your secret key
  • You return the client_secret of the Payment Intent to your frontend (React app).
  • For Card Element you pass the client_secret on confirmCardPayment
  • Otherwise for Payment Elerment you'd pass it to initialise the Element
#

Overall they both need a server/backend so not sure how you have that differentiation

young seal
#

Thanks man !

hazy olive