I've been trying to implement Google Pay by following the Google Pay API PaymentRequest Tutorial. I have everything implemented, however when I try to test on my Android phone, I get the following popup:
Request Failed
An unexpected error has occurred. Please try again later.
I've followed the troubleshooting guide, and using ADB I can see the following error:
WalletMerchantError: Error in loadWebPaymentData: PaymentDataRequest.transactionInfo is required
This seems to imply that transactionInfo
should be included in my paymentMethods
object. However, the tutorial states otherwise:
The
transactionInfo
property should be omitted. Total price and currency should instead be specified in thedetails
argument passed to PaymentRequest
Any advice?