简体   繁体   English

在 IOS 上集成 Stripe 3d 安全

[英]Integrate Stripe 3d secure on IOS

I´ve been working with stripe payment and now I want integrate 3d secure but documentation doesn't help me, Has anyone worked with 3d secure on ios?我一直在使用条纹支付,现在我想集成 3d 安全但文档对我没有帮助,有没有人在 ios 上使用 3d 安全?

My main question is how or when init the STPPaymentHandler that provide the STPThreeDSUI to handle authentication.我的主要问题是如何或何时初始化提供 STPThreeDSUI 的 STPPaymentHandler 来处理身份验证。

please help.请帮忙。

this links doesn´t have useful information此链接没有有用的信息

https://stripe.com/docs/payments/3d-secure#ios-testing https://stripe.com/docs/payments/3d-secure#ios-testing

https://github.com/stripe/stripe-ios https://github.com/stripe/stripe-ios

You can see an example of how to use the STPPaymentHandler here: https://github.com/stripe-samples/accept-a-card-payment/blob/master/using-webhooks/client/ios/App%20(Swift)/CheckoutViewController.swift#L112您可以在此处查看如何使用 STPPaymentHandler 的示例: https://github.com/stripe-samples/accept-a-card-payment/blob/master/using-webhooks/client/ios/App%20(Swift )/CheckoutViewController.swift#L112

Essentially, after the customer has submitted their payment details you want to get the globally shared instance of the STPPaymentHandler (using STPPaymentHandler.shared() ).本质上,在客户提交了他们的付款细节之后,您希望获得STPPaymentHandler的全局共享实例(使用STPPaymentHandler.shared() )。 You can then call the confirmPayment method to handle any needed authentication.然后,您可以调用confirmPayment方法来处理任何需要的身份验证。

I'd suggest taking a look at Stripe's guide for accepting a payment which touches on this.我建议看一下 Stripe 的接受付款指南,其中涉及到这一点。 If you're using the prebuilt UI you use this guide instead如果您使用的是预构建的 UI,请改用本指南

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

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