Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Google Pay integration? #11

Closed
SamuelMichelRiad opened this issue Jan 12, 2022 · 4 comments
Closed

Google Pay integration? #11

SamuelMichelRiad opened this issue Jan 12, 2022 · 4 comments

Comments

@SamuelMichelRiad
Copy link

Has anyone been able to use this plugin for Google Pay payments? As far as I understand, Google Pay also requires the ability to open popups to perform the payment.

@dpa99c
Copy link
Owner

dpa99c commented Jan 13, 2022

This solution is specifically for PayPal and requires the Braintree JS SDK to be present in the web page loaded into the WebView.
It will not work as a generic solution for other payment systems such as Google Pay.

@dpa99c dpa99c closed this as completed Jan 13, 2022
@SamuelMichelRiad
Copy link
Author

@dpa99c, thanks for your reply. Would you have any general suggestions on how to go about enabling generic popups from IAB?

@dpa99c
Copy link
Owner

dpa99c commented Jan 13, 2022

AFAIK there's no generic solution - WebViews (as used by Cordova's IAB) do not support popup windows since they are a feature of a full browser. If possible, I'd would open the page in the system browser which does support popup windows.

@SamuelMichelRiad
Copy link
Author

Thanks again - I've already tried opening the payment page in the system browser (through IAB, using _system as the target), and the payment page does indeed work as expected, however my app either hangs or restarts when I bring it to the foreground again :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants