capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 75 forks source link

Google pay not available even in the react demo project #329

Closed sxlwar closed 3 months ago

sxlwar commented 6 months ago

Platform

Describe the bug isGooglePayAvailable always false even the G-pay works properly on my device

To Reproduce Steps to reproduce the behavior: Build the demo/react project and install it on Android device

Expected behavior Google Pay works fine

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Usage Product If you adopt this plugin, please let us know which product you are using.

Product Name: Product URL : Using Function:

canercanbaz commented 3 months ago

Same here, it says it does not support always.

image

canercanbaz commented 3 months ago

Hello @rdlabo, sorry for mentioning you but I really need this. Do you have any idea why it does not work? Any comments or ideas?

rdlabo commented 3 months ago

OK. From my research, it appears that Google Pay may take some time to become available. In the demo, Google Pay was available after the isGooglePayAvailable run. I will soon change isGooglePayAvailable to an EventListener. Please wait a little.

canercanbaz commented 3 months ago

Thanks a lot @rdlabo, I am looking forward to it!

rdlabo commented 3 months ago

I have looked into this further and it is likely to be a device issue. We have released a version with an option to use Google Pay even if you don't have payments set up on your device.

% npm i @capacitor-community/stripe@5.5.1-beta.0
% npx cap update android

Let us know how this works.

canercanbaz commented 3 months ago

That seems to be working fine @rdlabo! Thanks a lot!

image

rdlabo commented 3 months ago

Great!!

merge https://github.com/capacitor-community/stripe/pull/345 and released v5.5.1 Thanks.