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

Getting "Something went wrong. Please try again." error in Wallet #12

Open
harishpulimi opened this issue Jun 18, 2023 · 6 comments
Open

Comments

@harishpulimi
Copy link

I have followed the tutorial and when I click on "Add to Google Wallet" button the Wallet is showing the error "Something went wrong. Please try again." and not adding the generic pass. Also the onActivityResult in CheckoutActivity is not getting called at all.

Any ideas where its going wrong and what the error could be? Thanks

@muhammed122
Copy link

Me too, getting this result always

@parissakalaee
Copy link

I get the same error, but I go back onActivityResult in CheckoutActivity, with this error:

PayClient.SavePassesResult.SAVE_ERROR -> data?.let { intentData ->
      val errorMessage = intentData.getStringExtra(PayClient.EXTRA_API_ERROR_MESSAGE)
 }

and the received errorMessage is this:


{
  "errorCode": "INVALID_JSON",
  "errorMessage": "Not a JSON Object"
}

I copied the JWT made by
node generic_pass.js
any idea to solve this issue?

@parissakalaee
Copy link

parissakalaee commented Sep 15, 2023

I solved my issue :D it was because of using
walletClient.savePasses( token, this, addToGoogleWalletRequestCode )
when I need to call savePassesJwt
walletClient.savePassesJwt( token, this, addToGoogleWalletRequestCode )

for anyone who read it later and has the same issue, the codelab step-by-step procedure with that node.js, needs savePassesJwt instead of savePasses!

@mohamedebrahim96
Copy link

@parissakalaee

Still i'm getting "Something went wrong. Please try again" error

@parissakalaee
Copy link

@mohamedebrahim96
What is the exact errorMessage?
PayClient.SavePassesResult.SAVE_ERROR -> data?.let { intentData -> val errorMessage = intentData.getStringExtra(PayClient.EXTRA_API_ERROR_MESSAGE) }

@mohamedebrahim96
Copy link

mohamedebrahim96 commented May 30, 2024

@parissakalaee
1- i enabled the Google cloud Key for Google wallet
2- i downloaded the json file from Google cloud
3- i added (issuerId) in this file https://github.com/google-wallet/android-codelab/blob/main/backend/generic_class.js
with commend node generic_class.js
4- after running the android app i'm getting this

{ "errorCode": "INVALID_JSON", "errorMessage": "Not a JSON Object" }

Screenshot 2024-05-30 at 7 16 43 PM

5- maybe should i wait for 2 days until google verify my account?

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