javascript - 在 Cordova/Phonegap 应用程序中实现 Stripe 支付网关

标签 javascript android ios cordova stripe-payments

搜索了很多。我想在我的 cordova 应用程序中集成 Stripe 支付网关,有什么方法可以使用 javascript 在 android 和 ios 中实现它。

最佳答案

我通过电子邮件发送了 stripe,如果您像在 Web 上一样简单地集成它,显然它在 iOS 上运行良好。不幸的是它还不适用于安卓! :(

While Checkout should work fine on iOS devices with PhoneGap (or anything that uses native WebViews), it does not work on Android devices with native WebViews. This is a known issue, and one we would like to fix in the future, but are not able to fix yet. The solution, for now, if Android is a requirement is to build a custom form using Stripe.js[0].

更新:

显然是存在的!我还没有尝试过,但这是链接

http://plugins.telerik.com/plugin/stripe

更新 2:checkout.js 现在实际上可以与 phonegap 或 cordova 一起正常工作。查看文档 here

更新 3:显然 checkout.js 再次被破坏,包括 cordova ios 4.0.0,最新版本的 cordova ios 是 3.9.2。这里有另一个问题:Using Stripe Checkout with Cordova ios 4.0.0+

更新 4:我们现在正在使用 Stripe V3 Elements,但只要您将 stripe 列入白名单,stripe checkout.js 就应该可以工作,如 here 所示

关于javascript - 在 Cordova/Phonegap 应用程序中实现 Stripe 支付网关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24205200/

相关文章:

android - 如何更改 Android 模拟器中的制造商属性?

ios - Swift Spritekit - 如果已经添加了相同的 Sprite ,则将其添加到场景时会出现问题

ios - 通过 iOS 应用 Facebook API 向 friend 发送私有(private)消息

javascript - 如何对具有解构 props 的组件进行测试?

javascript - 在哪里可以找到 Protovis 辅助函数?

javascript - 如何理解event.eventPhase?

IOS:如何在第一次登录 ios 时处理 View Controller

javascript - 如何滚动到响应式网站中的 anchor ?

android - Android和Vitamio支持YouTube和Vimeo视频

android - IMarketBillingService.java 从未在应用程序的 gen 文件夹中创建?