React-stripe-elements: Unable to enter card information(In stripe elements) in ios mobile app.

Created on 4 Jul 2018  路  6Comments  路  Source: stripe/react-stripe-elements

Feature request or idea? Consider opening an
API review!

Summary

We developed our web-application in react.We developed mobile application using Phonegap(software development framework which uses web application code).In that IOS app react-stripe-elements are not working.I am not able to enter card number,ccv,expiry and postal code.Is any one else facing same issue?

Other information

Most helpful comment

@SuryaAcube I got it to work by adding <allow-navigation href="*://js.stripe.com/*" /> to config.xml 馃尀鉁岋笍

All 6 comments

@SuryaAcube I got it to work by adding <allow-navigation href="*://js.stripe.com/*" /> to config.xml 馃尀鉁岋笍

@anttikon Thank you so much.

@anttikon : Love you! You made my day. :)

Thank you so much

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

When I do this and build the app, when opening the app on iOS, right at the splash screen, the app kicks out and opens my apps webview URL within Safari new tab.

Removing the allow-navigation, the app loads just fine but the mounting of the card doesn't seem to work as the form is blank and I cannot focus in it to type. Working fine on dev machine on Firefox.

Any ideas?

FYI after some inspection, I did not have <allow-navigation href="*://localhost/*" /> in my config initially, so adding in <allow-navigation href="*://js.stripe.com/*" /> to config immediately blacklisted everything else, including localhost, so it would kick it out to Safari browser.

Also, Stripe elements load just fine now after this too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cleemputc picture cleemputc  路  5Comments

DennisdeBest picture DennisdeBest  路  4Comments

cypcz picture cypcz  路  4Comments

stephenhuh picture stephenhuh  路  4Comments

michael-reeves picture michael-reeves  路  3Comments