user121032
user121032

Reputation: 161

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!

Upvotes: 14

Views: 1386

Answers (3)

Daniel Birowsky Popeski
Daniel Birowsky Popeski

Reputation: 9266

I had to add these two in config.xml:

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

Upvotes: 0

colomer7
colomer7

Reputation: 33

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

Upvotes: 0

Debmalya
Debmalya

Reputation: 51

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

Upvotes: 5

Related Questions