条带:HTML Checkout iOS Cordova无法打开 [英] Stripe: HTML Checkout iOS Cordova wont open

查看:85
本文介绍了条带:HTML Checkout iOS Cordova无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了一个使用条纹结帐html表单元素的应用程序.它似乎可以在Android(cordova)和浏览器上很好地工作.

在ios cordova上,弹出窗口变暗效果会持续5秒钟,然后恢复正常(未打开弹出窗口),而在野生动物园中,结帐表单会在其他选项卡上打开,而不是弹出窗口.

该表单也是自定义表单,但即使是基本表单也不起作用.

请帮助!

解决方案

我在ios上遇到了同样的问题. 需要在config.xml中添加两行

<access origin="*" /> <allow-navigation href="https://*.stripe.com/*" />

http://checkcoding.com/q/32610/javascript-ios-cordova-stripe-payments-using-stripe-checkout-with-cordova-ios-4-0-0

I've built an app which uses stripes checkout html form element. It appears to work well on Android(cordova) and browser.

On ios cordova the popups dim effect happens for 5secs and then it goes back to normal (no popup opened) and on safari the checkout form opens on a different tab instead of being a popup.

Also the form is custom but even the basic form doesn't work.

Please help!

解决方案

I have been having the same issue on ios. Needed to add two lines to the config.xml

<access origin="*" /> <allow-navigation href="https://*.stripe.com/*" />

http://checkcoding.com/q/32610/javascript-ios-cordova-stripe-payments-using-stripe-checkout-with-cordova-ios-4-0-0

这篇关于条带:HTML Checkout iOS Cordova无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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