简体   繁体   English

如何使用React Native实现Stripe?

[英]How to implement Stripe with React Native?

I have researched on how to implement Stripe using React native, but have not found a solid way to so. 我已经研究过如何使用React native实现Stripe,但还没有找到一个可行的方法。 Apparently, React Native does not support http module so would have to use Stripe API using fetch (as explained in http://blog.bigbinary.com/2015/11/03/using-stripe-api-in-react-native-with-fetch.html ). 显然,React Native不支持http模块,因此必须使用fetch使用Stripe API(如http://blog.bigbinary.com/2015/11/03/using-stripe-api-in-react-native-中所述) with-fetch.html )。

So my question is, is using fetch method to Stripe API endpoints a good alternative to stripe.js ? 所以我的问题是,使用stripe.js API端点的fetch方法是stripe.js一个很好的替代stripe.js吗? And would I be missing out on anything by not using stripe.js ? 如果不使用stripe.js我会错过任何事情吗? Also, is stripe.js another name for the Stripe SDK? 另外, stripe.js是Stripe SDK的另一个名字吗?

Lastly, by using fetch to Stripe API endpoints in place of stripe.js , would it still be considered a fully PCI-compliant integration as described in https://stripe.com/docs/security ? 最后,通过使用fetch到Stripe API端点代替stripe.js ,它是否仍然被认为是完全符合PCI的集成,如https://stripe.com/docs/security中所述

Thank you in advance 先感谢您

We've made wrapper around native Stripe SDK for both platforms here: https://github.com/tipsi/tipsi-stripe 我们为这两个平台制作了原生Stripe SDK的包装: https//github.com/tipsi/tipsi-stripe

When you are using native sdk it gives you better integration with platform, so our goal was to make same api for both platforms and support native features. 当您使用本机sdk时,它可以让您更好地与平台集成,因此我们的目标是为两个平台制作相同的API并支持本机功能。

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

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