I’ve been using a square react plugin for some time now without any issues.
However, I’m trying to implement the same plugin into a Ionic Hybrid app and I can get the credit card to function as expected, but the Google Pay button doesn’t work as expected.
When I click the “Pay with Google Pay” button, it opens a new browser (outside of the webview app) and asks me to login. Once I confirm the card I get a “Unknown Developer error” and when I click retry it tries to redirect to a localhost url.
I’m assuming the issue lies within the app opening a new browser instead of opening a window within the webview (‘like my functioning webview app does’) but i’m unsure of how to prevent the Google Pay button from opening a new window.
I understand this is not really a Square issue but maybe someone has come across this before or might know a fix…
I’ve created a CapacitorJs plugin which uses Square’s native card entry form and GooglePay and Apple pay. It basically just returns cardDetails after the forms have completed
Maybe someone wants to contribute to refactor and finalize, since I built this in 2 days with minimal java/swift knowledge