搜索了很多。我想在我的 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/