stripe icon indicating copy to clipboard operation
stripe copied to clipboard

Google pay is not working on react android demo code

Open mostafa3ly opened this issue 2 years ago • 7 comments

Platform

  • [ ] Android

Describe the bug Google pay is not working on react android demo code. it logs Not implemented on device on the react android demo code

mostafa3ly avatar Jun 15 '22 10:06 mostafa3ly

@mostafa3ly Thanks for issue.

This was CapacitorStripeProvider's bug. I fixed and released v3.8.2. Please test it. https://github.com/capacitor-community/stripe/commit/a8ef5f4452321b90b1190f51ac104f42f9fb46ef

Thanks.

rdlabo avatar Jul 03 '22 10:07 rdlabo

@rdlabo This issue is not fixed yet still having Google play is not implemented on device issue.

I tested your demo code of React with out changing anything it to ensure that the issue is not from my side and it gives me the same issue.

mostafa3ly avatar Jul 18 '22 15:07 mostafa3ly

@mostafa3ly Did you run npm install and npx cap sync ? In my device, no problem to run.

rdlabo avatar Jul 19 '22 01:07 rdlabo

@rdlabo yes sure i run npm install then npx cap sync android without changing anything in the app and the google pay button is still dimmed.

and i see that you comment a string in strings.xml file with name stripe_account i don't know if i should replace this value and to what value.

I don't think you test this on react cause you miss @capacitor/android from your dependencies so how you could run android app without it.

note: this issue happens on REACT.

mostafa3ly avatar Jul 20 '22 09:07 mostafa3ly

Yes, I tested on react-demo. Now, work with no problem. Can Google Pay work on your device?

rdlabo avatar Jul 20 '22 10:07 rdlabo

@rdlabo yes Google pay is working on my device and i tested it on your demo hosting for web on mobile google chrome browser and it working fine.

i tried your plugin on 4 phones and all of them give the same issue. also tested on emulator Screenshot_20220720_135840

mostafa3ly avatar Jul 20 '22 11:07 mostafa3ly

I put the word "React" in the title of the Demo to make sure I check it with React-Android. It is indeed working.

S__12345346 S__12345348

Are you sure you run npm install? Make sure the package version of demo/react/node_modules/@capacitor-community/stripe/package.json is 3.8.2-0 or higher.

rdlabo avatar Jul 21 '22 03:07 rdlabo

This Issue will be closed because it has not been updated for a long time. If you encounter similar problems, please start a new Issue.

rdlabo avatar Dec 19 '22 06:12 rdlabo