Hi all. I am trying to get Google Pay working on our app. I have followed the example in the documentation but get the following message returned from the requestGooglePayNonce method:
Error(code=USAGE_ERROR, message=Something went wrong. Please contact the developer of this application and provide them with this error code: google_pay_unauthorized, debugCode=google_pay_unauthorized, debugMessage=This request could not be authorized.)
I have checked me a in ENVIRONMENT_TEST and I am using our staging location id. The only difference between the code in the documentation and mine is in loadPaymentMethod:
GooglePay.createPaymentDataRequest(
LOCATION_ID,
TransactionInfo.newBuilder().setTotalPriceStatus(WalletConstants.TOTAL_PRICE_STATUS_FINAL)
.setTotalPrice(String.valueOf(eventPrice))
.setCurrencyCode(“GBP”).build()
)
We set the total price and the currency code is GBP rather than USD.
Has anyone come across this before?
Cheers, Paul