简体   繁体   中英

Stripe integration - Payment Intent with checkout redirection

I am working on to upgrade the checkout process to make it SCA complaint. As per their doc I need to use the PaymentIntents for it. And I did follow the steps mentioned in their document: https://stripe.com/docs/payments/payment-intents/web

Now I was able to configure it properly but in this document it mentioned to have stripe-card-element. But I need to use the checkout redirection process instead of this card element. Need to use this :

https://stripe.com/docs/payments/checkout/migration 在此处输入图片说明

If somebody know please share some info. FYI, I already reached their customer support but they are taking way too long to respond and I am in hurry.

If you are using updated Stripe Checkout (that does the redirect for you), you do not need to create PaymentIntents manually. Checkout uses PaymentIntents under the hood and will automatically do that for you.

It looks like what you want is the client-server Checkout integration: https://stripe.com/docs/payments/checkout/one-time#client-server

ie create a Checkout Session server-side, then use Stripe.js and redirectToCheckout to redirect to the Checkout page using the session ID.

There is also a client-only integration that you could leverage: https://stripe.com/docs/payments/checkout/one-time#client-only

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM