#ianaylon - create pm

1 messages · Page 1 of 1 (latest)

umbral fiber
hushed pendant
#

Hmmmm. This can be used with payment elements?

umbral fiber
#

Yeah

hushed pendant
#

Got it. I just miss one step.
Create element -> mount element -> user enters cc details -> and then... How do I create the payment method without charging? I want the user to press "Submit", send the payment details to Stripe and get the token back

umbral fiber
hushed pendant
#

Okay, we'll try. Thanks!

umbral fiber
#

So for Payment Element you have to pass a client secret. You could just create a payment method by creating a setupintent without a customer, then passing the setupintent client secret to the payment element

#

That would be the way to do it with the payment element

#

If you use the card element, you can use the original link i sent

#

@hushed pendant just so you see the above