Stripe: HTML Checkout iOS Cordova wont open

こ雲淡風輕ζ 提交于 2020-06-25 07:57:33

问题


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!


回答1:


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




回答2:


I had the same error, I solved this by adding this line to the "mobile-config.js" file :

  App.accessRule('https://*.stripe.com/*', { type: 'navigation' });


来源:https://stackoverflow.com/questions/39228394/stripe-html-checkout-ios-cordova-wont-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!