我目前正在维护一个在丹麦使用的应用程序。我们在服务器端使用条带API进行支付,流程如下:用户输入CC,应用端令牌化卡片并发送到服务器,服务器通过API将支付发送到条带。
我正在尝试找出什么需要更改才能与SCA一起工作,我阅读了使用支付意图的文档,但我们没有使用该api。
我们是否需要将一些东西从服务器传递给用户以进行额外的身份验证层?
感谢您的任何意见!
发布于 2019-06-06 17:05:38
除了SCA之外,如果您不想/不需要使用元素,还有一个新的PaymentIntents -ready Checkout V3:
Https://UI/product.png‘,session = stripe.checkout.sessions.create({ payment_method_types:'https://UI/product.png',’,customer: success_url,https://API/v1/cart/${cart.id}/pay,cancel_url:https://API/v1/cart/${cart.id}/cancel,line_items:{ name:‘stripe.checkout.sessions.create’,description:‘超级酷自行车...’,图片:‘const amount: 100,currency:'USD',} payment_intent_data:{ capture_method:'automatic',//或'manual‘}});
const结果=等待stripe.redirectToCheckout({ sessionId: session.id });
3a。
3b。或者,设置一个webhook并处理传入通知
注意:如果您决定使用capture_method=manual,您需要像这样获取付款:
stripe.paymentIntents.capture(session.payment_intent)https://stackoverflow.com/questions/56192083
复制相似问题