#MidnightCrow

1 messages · Page 1 of 1 (latest)

delicate hearthBOT
craggy pine
#

Hello 👋
Not sure I fully understand, are you only trying to create a PaymentMethod using PaymentElement without using SetupIntents?

dire saffron
#

With card element, you are able to generate a token and let your backend handle creating a payment source with that token.

With payment element, it seems like you have to handle the saving of a payment only on the front end with setupIntent and then confirmPayment. Is there no way to handle the confirmPayment on the server side?

craggy pine
dire saffron
#

it looks like confirmSetup still takes the elements object you use in the front end, so this step has to be done on the client side?

craggy pine
#

Yeah that's correct. I don't think there's a way to completely do that server-side unfortunately..

dire saffron
#

Just to clarify: with the card element you can correct? You generate a card token with the elements and then you can send that token securely to the server side?

craggy pine