简体   繁体   English

条带集成-带结帐重定向的付款方式

[英]Stripe integration - Payment Intent with checkout redirection

I am working on to upgrade the checkout process to make it SCA complaint. 我正在努力升级结帐流程,以使其成为SCA投诉。 As per their doc I need to use the PaymentIntents for it. 根据他们的文档,我需要使用PaymentIntents。 And I did follow the steps mentioned in their document: https://stripe.com/docs/payments/payment-intents/web 我确实遵循了他们文档中提到的步骤: 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 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. 如果您使用的是更新的Stripe Checkout(为您执行重定向),则无需手动创建PaymentIntent。 Checkout uses PaymentIntents under the hood and will automatically do that for you. Checkout在后台使用PaymentIntents,并将自动为您执行此操作。

It looks like what you want is the client-server Checkout integration: https://stripe.com/docs/payments/checkout/one-time#client-server 看起来您想要的是客户端-服务器Checkout集成: 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. 例如,在服务器端创建一个Checkout会话,然后使用Stripe.js和redirectToCheckout使用会话ID重定向到Checkout页面。

There is also a client-only integration that you could leverage: https://stripe.com/docs/payments/checkout/one-time#client-only 您还可以利用仅客户端集成: https : //stripe.com/docs/payments/checkout/one-time#client-only

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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