Getting this error recently from Google Pay. Any idea what this means or how to fix it ??
DEVELOPER_ERROR in loadPaymentData: An error occurred in call back, please try to avoid this by setting structured error in callback response pay.js:101:412
After a lot of research I’ve narrowed it down to some of the ShippingOptionChanged or ShippingContactChange callbacks for Google Pay. If I code them according to your documentation, they always produce this error in sandbox or production.
Luckily we have nothing to ship, so I removed all the Shipping callbacks and set the RequestShippingAddress to false, and not include it in the PaymentRequestJson. This allows it to work great.
However, it would be good to fix, or know what’s going on. If you can show me a working example I’d be grateful.
As an aside, when I set requestBillingInfo to true, how would I pick that info up ? I don’t see a callback, and nothing appears to be returned in cardNonceResponseReceived, at least for Google Pay.