Closed honey93 closed 7 years ago
I believe you won't be able to host the page containing the Paypal Checkout code within the app - it will fail the CORS checks on the PayPal servers (if you inspect the JS console in the IAB Webview, you'll see a bunch of security errors). The page must be hosted on a server, and that URL opened from within the InappBrowser.
I've created a branch of the demo project: https://github.com/dpa99c/cordova-plugin-inappbrowser-popup-bridge-test/tree/paypal-checkout
It uses a test page hosted on my server: http://demos.workingedge.co.uk/iab.html
Try cloning and running the test project:
git clone https://github.com/dpa99c/cordova-plugin-inappbrowser-popup-bridge-test#paypal-checkout
cordova platform add android
cordova run android
I installed your plugin cordova plugin add cordova-plugin-inappbrowser-popup-bridge
Then I initialized in main.js file :
In html used it like:
In controller file I used it:
Still the paypal button is not getting displayed on click of button, could you please help me out: