react-square-web-payments-sdk icon indicating copy to clipboard operation
react-square-web-payments-sdk copied to clipboard

Google Pay - unexpected developer issue

Open spycedev opened this issue 2 years ago • 1 comments

Describe the bug

When clicking the Google Pay button, a new window is opened and google asks me to login, after logging in I get the "unexpected developer error". After clicking "Retry" i'm redirected to a localhost/?somedata url.

I'm using the plugin currently in another webview app without issues, but in this Ionic React app running on a physical android device.

Your Example Website or App

N/A

Steps to Reproduce the Bug or Issue

I will create an example app and update the ticket

Expected behavior

A google pay window opens within the webview to login and choose card, once selected to cardtoken is passed

Screenshots or Videos

No response

Platform

  • OS: [Android]
  • Browser: [Ionic Webview]
  • Version:

Additional context

No response

spycedev avatar May 15 '23 20:05 spycedev

It looks like the reason for the developer error is because popup's aren't allowed in capacitor.

I've tried adding *.google to the allowed url's for capacitor in the config file. It's able to redirect to the Google pay login screen but hangs on loading after you type in your email address, and it's not a popup, its actually redirected.

Any ideas ? It works fine outside of the capacitor app.

spycedev avatar Jun 09 '23 22:06 spycedev