Paypal-checkout-components: PayPal Express Checkout Button not rendering in iOS when used in Cordova application. It is working in Android but the button is not getting build up in iOS devices.

Created on 22 Apr 2018  路  5Comments  路  Source: paypal/paypal-checkout-components

Description

Please provide a short description of the issue here, along with:

  • Screenshots or videos that show the issue
  • Your code
  • The paypal.version from your browser console
  • The exact browser version
  • A link to your page with the issue, if possible
  • All console logs during the time of the issue, especially error messages
  • Does the issue also occur at developer.paypal.com/demo/checkout?
  • Does the issue occur consistently, or intermittently?

Steps to reproduce

Please provide each individual step required to reproduce the issue

Affected browsers

  • [ ] Chrome
  • [ ] Safari
  • [ ] Firefox
  • [ ] Edge
  • [ ] IE
  • [ ] Chrome Mobile/Tablet
  • [ ] Safari Mobile/Tablet
  • [ ] Web View / Safari ViewController
  • [ ] Other
outdated

Most helpful comment

Just add
<allow-navigation href="*" />
for ios platform in config.xml and it will render.

All 5 comments

We don't officially support cordova -- if you find any specific root cause, we'll be glad to accept a PR -- but otherwise I'm afraid this isn't likely to get a lot of priority.

Just add
<allow-navigation href="*" />
for ios platform in config.xml and it will render.

Just add
<allow-navigation href="*" />
for ios platform in config.xml and it will render.

Thanks
It worked for me.

As described in cordova-plugin-whitelist, it is not recommended to use the * wildcard to whitelist the whole world.

For a more limited whitelisting that still works, you could use:

    <allow-navigation href="about:*" />
    <allow-navigation href="https://www.paypal.com/*" />
    <allow-navigation href="https://www.paypalobjects.com/*" />

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings