简体   繁体   中英

Stripe: HTML Checkout iOS Cordova wont open

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

我遇到了同样的错误,我通过将此行添加到“mobile-config.js”文件来解决此问题:

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

I had to add these two in config.xml :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM