Open harishpulimi opened 1 year ago
Me too, getting this result always
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?
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!
@parissakalaee
Still i'm getting "Something went wrong. Please try again" error
@mohamedebrahim96
What is the exact errorMessage?
PayClient.SavePassesResult.SAVE_ERROR -> data?.let { intentData -> val errorMessage = intentData.getStringExtra(PayClient.EXTRA_API_ERROR_MESSAGE) }
@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" }
5- maybe should i wait for 2 days until google verify my account?
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