如何使用React Native实现Stripe? [英] How to implement Stripe with React Native?

查看:251
本文介绍了如何使用React Native实现Stripe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经研究了如何使用React native来实现Stripe,但是还没有找到一种可靠的方法.显然,React Native不支持http模块,因此必须使用fetch使用Stripe API(如

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).

所以我的问题是,使用fetch方法对Stripe API端点进行替代是否是stripe.js的一个很好的选择?我是否会因为不使用stripe.js而错过任何东西?另外,stripe.js是Stripe SDK的另一个名称吗?

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?

最后,通过使用提取来代替stripe.js的Stripe API端点,是否仍被视为完全兼容PCI的集成,如 https://stripe.com/docs/security 吗?

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 ?

提前谢谢

推荐答案

我们在以下两个平台上对本机Stripe SDK进行了包装: https://github.com/tipsi/tipsi-stripe

We've made wrapper around native Stripe SDK for both platforms here: https://github.com/tipsi/tipsi-stripe

当您使用本机sdk时,它可以更好地与平台集成,因此我们的目标是为两个平台制作相同的api,并支持本机功能.

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.

这篇关于如何使用React Native实现Stripe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆