google-wallet / rest-samples

Samples for the Google Wallet REST APIs
https://developers.google.com/wallet/
Apache License 2.0
277 stars 119 forks source link

Google Wallet Generic Pass Removing Card Title and Custom Font Color #88

Open JunaidSultan20 opened 1 year ago

JunaidSultan20 commented 1 year ago

Prerequisites

I am working on the dotnet implementation of the Generic Pass and as per our need I don't want to display the Card Title and I also want to display a custom font color for the text on the front side of the Generic Pass. But when the card title field is set to null the card is not added in the wallet rather it displays Something went wrong message in Google Wallet.

Expected Behavior

Current Behavior

Steps to Reproduce

  1. Remove the CardTitle field from the GenericObject or set the field to string.Empty or " " or null
  2. Convert the model to JwtObject and create the payload
  3. Create the JWT token add/concat it to the Google Pay API link
  4. Use the link to add the card to the Google Wallet

Context

Screenshots

No Card Title Added

Adawntoremember commented 9 months ago

Prerequisites

I am working on the dotnet implementation of the Generic Pass and as per our need I don't want to display the Card Title and I also want to display a custom font color for the text on the front side of the Generic Pass. But when the card title field is set to null the card is not added in the wallet rather it displays Something went wrong message in Google Wallet.

Expected Behavior

  • When I set the card title to null in the GenericObject the title should be set to null or empty string, and it should not be displayed when the card is added to Google Wallet via Google Pay API link.
  • The card should be added successfully to the wallet regardless of the CardTitle added or not in the JWT Payload

Current Behavior

  • The card is not added in the Google Wallet and instead the message Something went wrong appears.

Steps to Reproduce

  1. Remove the CardTitle field from the GenericObject or set the field to string.Empty or " " or null
  2. Convert the model to JwtObject and create the payload
  3. Create the JWT token add/concat it to the Google Pay API link
  4. Use the link to add the card to the Google Wallet

Context

  • Operating System: Windows 10
  • Browser: Microsoft Edge
  • Android Version: 13
  • Google Apis Version: 1.62.0

Screenshots

No Card Title Added

https://github.com/google-wallet/rest-samples/issues/99#issue-2007898824