#blueish

1 messages · Page 1 of 1 (latest)

urban plazaBOT
grave oracle
#

This is our flow when we are using Card Element , i want to know if this is still applicable for Payment Element.

kind wadi
#

Hi
I assume you are using this stripejs method:

https://stripe.com/docs/js/payment_methods/create_payment_method
This is an old integration.
You should create the customer first then collect the PaymentMethod:
https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
However, check this guide:
https://stripe.com/docs/payments/finalize-payments-on-the-server?type=setup
i think you can postpone the Customer Creation just after the collection of the PaymentMethod and before creating the SetupIntent.

grave oracle
#

Can I use stripe.createPaymentMethod with SetupIntent?

kind wadi
#

No. CreatePayemtnMethod don't authenticate the payments method. For better auth rates, you need to use SetupIntent like on of the guides I shared with you.