wallet-samples
wallet-samples copied to clipboard
Barcode type must be set error since update
Hello,
I'm using the PHP generic card sample.
Since I updated my dependencies:
- Upgrading google/auth (v1.30.0 => v1.34.0)
- Upgrading google/apiclient-services (v0.317.0 => v0.332.0)
- Upgrading google/apiclient (v2.15.1 => v2.15.3)
I got this error from Google API:
{ "error": { "code": 400, "message": "Barcode type must be set.", "errors": [ { "message": "Barcode type must be set.", "domain": "walletobjects", "reason": "invalidResource" } ] } }
Did you experience something like this recently ?
Thanks
I had run into this issue as well and reached out to the Google Wallet API support team (thank you team!!). You can set the barcode to null to hide. I was trying to use "UNSPECIFIED" like in their demo but that doesn't seem to work anymore. Maybe this'll help someone who is googling this issue like I was.