-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I have followed the codelad example but when viewing the pass in the wallet the textmoduledata information is not displayed.
this is my code:
`const genricClass = {
"id": ${issuerId}.${classSuffix},
"classTemplateInfo": {
"cardTemplateOverride": {
"cardRowTemplateInfos": [
{
"twoItems": {
"startItem": {
"firstValue": {
"fields": [
{
"fieldPath": "object.textModulesData['points']",
},
],
},
},
"endItem": {
"firstValue": {
"fields": [
{
"fieldPath": "object.textModulesData['contacts']",
},
],
},
},
},
},
],
},
},
}
const genericObject = {
'id': ${issuerId}.${order.nanoId},
'classId': ${issuerId}.${classSuffix},
"logo": {
"sourceUri": {
"uri": "https://storage.googleapis.com/wallet-lab-tools-codelab-artifacts-public/pass_google_logo.jpg"
},
"contentDescription": {
"defaultValue": {
"language": "en-US",
"value": "LOGO_IMAGE_DESCRIPTION"
}
}
},
"cardTitle": {
"defaultValue": {
"language": "en-US",
"value": "[SOLO PARA PRUEBAS] Google I/O"
}
},
"subheader": {
"defaultValue": {
"language": "en-US",
"value": "Attendee"
}
},
"header": {
"defaultValue": {
"language": "en-US",
"value": "Alex McJacobs"
}
},
"textModulesData": [
{
"id": "points",
"header": "POINTS",
"body": "1112"
},
{
"id": "contacts",
"header": "CONTACTS",
"body": "79"
}
],
"barcode": {
"type": "QR_CODE",
"value": "BARCODE_VALUE",
"alternateText": ""
},
"hexBackgroundColor": "#4285f4",
"heroImage": {
"sourceUri": {
"uri": "https://storage.googleapis.com/wallet-lab-tools-codelab-artifacts-public/google-io-hero-demo-only.png"
},
"contentDescription": {
"defaultValue": {
"language": "en-US",
"value": "HERO_IMAGE_DESCRIPTION"
}
}
}
}
const claims = {
iss: credentials.client_email,
aud: 'google',
origins: ['https://dev-api.hifumi.com'],
typ: 'savetowallet',
payload: {
genericObjects: [genericObject],
genericClasses: [genricClass]
}
}`
