How to implement Stripe with React Native?

心不动则不痛 提交于 2019-12-03 16:58:10

问题


I have researched on how to implement Stripe using React native, but have not found a solid way to so. 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).

So my question is, is using fetch method to Stripe API endpoints a good alternative to stripe.js? And would I be missing out on anything by not using stripe.js? Also, is stripe.js another name for the 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 ?

Thank you in advance


回答1:


We've made wrapper around native Stripe SDK for both platforms here: 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.



来源:https://stackoverflow.com/questions/40092731/how-to-implement-stripe-with-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!