Stripe: HTML Checkout iOS Cordova wont open

2020-08-13 02:32发布

问题:

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' });