#l3ash9i98
1 messages · Page 1 of 1 (latest)
What specifically are you trying to do?
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
BUt i cant find the component for that
You should just use the Payment Element really which has support for dozens of other PMs, including banking methods, not just cards: https://stripe.com/docs/payments/payment-element
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 ?
Is that how it works ?
Well you need a backend for most Stripe integrations, including the Card Element (they both use Payment Intents)
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 ?
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_secretof the Payment Intent to your frontend (React app). - For Card Element you pass the
client_secretonconfirmCardPayment - 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
Okay, i will try it
Thanks man !