Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Pay throws Unexpected Developer Error #1

Open
trocker opened this issue Sep 12, 2022 · 6 comments
Open

Google Pay throws Unexpected Developer Error #1

trocker opened this issue Sep 12, 2022 · 6 comments

Comments

@trocker
Copy link

trocker commented Sep 12, 2022

Hello -

First off, thank you so much for this contribution. This is amazing work.

Secondly, for me, the Google Pay activity opens up with the test card details loaded but when I click on Pay, the fingerprint sceen pops up and after successful fingerprint recognition, the GPay throws an error "Request Failed. Unexpected developer error.". Did you face this error before? (or is everything still working smoothly for you?)

I tried to logcat into the device and search for "WalletMerchantError" as shown here - https://developers.google.com/pay/api/android/support/troubleshooting , but I do not see any "WalletMerchantError". I wonder if it is at all possible to get this to work?

@templatetuners
Copy link

@trocker did you fix it?

@trocker
Copy link
Author

trocker commented Dec 15, 2022

I did. I had to change the library code (the java file in the plugin folder) to add additional keys (parameters) that google now accepts (gmerchantid, stripekey and something else). It then worked like a charm. You need to include the java file changes before you build it for android otherwise the android folder (under platforms folder) would contain the default (unchanged) code.

I wish I could share the change with you but I am away from my code base. However, it's a relatively easy change to make. You just gotta fix the key/value string that's being prepared in the library.

@templatetuners
Copy link

@trocker fixed sandbox, I use braintree. But it works only if I disabled 3d secure.
3D secure works for you? thanks

@trocker
Copy link
Author

trocker commented Dec 15, 2022

Haven't tried 3d secure but I'd bet it's a Google pay issue and not a cordova library one.

@rareplanet1
Copy link
Owner

@trocker please feel free to raise a pull request with the fix, cheers
@templatetuners same if you need to make additional changes to support braintree.

@Fei-Xiang
Copy link

Fei-Xiang commented Apr 10, 2023

@rareplanet1 Please check the pull request for the fix.

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

No branches or pull requests

4 participants