【发布时间】:2017-02-26 19:28:56
【问题描述】:
我研究过如何使用 React native 实现 Stripe,但还没有找到可靠的方法。显然,React Native 不支持 http 模块,因此必须通过 fetch 使用 Stripe API(如 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 的另一个名称吗?
最后,通过使用 fetch 到 Stripe API 端点代替 stripe.js,它是否仍被视为完全符合 PCI 的集成,如 https://stripe.com/docs/security 中所述?
提前谢谢你
【问题讨论】:
标签: javascript react-native stripe-payments fetch react-jsx