כתובת האימייל שנוצרה בחשבון השירות ב-Google Cloud.
aud
מחרוזת
Y
קהל. הקהל של אובייקטים של Google Wallet API תמיד יהיה
google
typ
מחרוזת
Y
סוג ה-JWT. הקהל של אובייקטים של Google Wallet API תמיד יהיה
savetowallet
iat
מספר שלם
Y
מונפקת בזמן בשניות מאז תחילת התקופה.
payload
אובייקט
Y
אובייקט Payload.
payload.eventTicketClasses
מערך
לא
הקטגוריה של הכרטיס לאירוע תישמר.
payload.eventTicketObjects
מערך
לא
אובייקט של כרטיס לאירוע לשמירה.
payload.flightClasses
מערך
לא
מחלקת הטיסה לשמירה.
payload.flightObjects
מערך
לא
אובייקט טיסה לשמירה.
payload.giftCardClasses
מערך
לא
הקטגוריה של כרטיס המתנה תישמר.
payload.giftCardObjects
מערך
לא
אובייקט של כרטיס מתנה לשמירה.
payload.loyaltyClasses
מערך
לא
שיעור נאמנות כדי לחסוך.
payload.loyaltyObjects
מערך
לא
אובייקט נאמנות לשמירה.
payload.offerObjects
מערך
לא
הצעת אובייקט לשמירה.
payload.offerClasses
מערך
לא
הציעו את הכיתה כדי לחסוך.
payload.transitObjects
מערך
לא
אובייקט תחבורה ציבורית כדי לשמור.
payload.transitClasses
מערך
לא
כדי לשמור את המחלקה בתחבורה הציבורית.
origins
מערך
Y
מערך דומיינים לאישור הפונקציונליות של שמירת JWT. Google Wallet API
הלחצן לא יוצג אם השדה origins לא יוגדר. אפשר
עשויה לקבל את ההודעה "הטעינה נדחתה על ידי X-Frame-Options" או "סרב להצגה" הודעות ב
במסוף הדפדפן כששדה המקור לא מוגדר.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eThe JSON structure defines a payload for saving various Google Wallet objects like event tickets, flights, gift cards, loyalty cards, offers, and transit passes.\u003c/p\u003e\n"],["\u003cp\u003eRequired fields include \u003ccode\u003eiss\u003c/code\u003e (issuer), \u003ccode\u003eaud\u003c/code\u003e (audience), \u003ccode\u003etyp\u003c/code\u003e (type), \u003ccode\u003eiat\u003c/code\u003e (issued at time), \u003ccode\u003epayload\u003c/code\u003e (object data), and \u003ccode\u003eorigins\u003c/code\u003e (allowed domains).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epayload\u003c/code\u003e object contains arrays for different object types, each with 'Class' and 'Object' entries for defining object structures and instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eorigins\u003c/code\u003e field is crucial for enabling the Google Wallet API button and preventing loading errors in the browser.\u003c/p\u003e\n"]]],["The JSON defines data for saving various passes to Google Wallet. Required fields include the service account email (`iss`), \"google\" as the audience (`aud`), \"savetowallet\" as the type (`typ`), and the issued-at time (`iat`). The `payload` contains arrays for classes and objects related to event tickets, flights, gift cards, loyalty programs, offers, and transit. `origins` lists approved domains for JWT saving. Each object or class array within the `payload` is optional.\n"],null,["# Google Wallet API JWT\n\n### JSON representation\n\n```gdscript\n{\n \"iss\": \"example_service_account@developer.gserviceaccount.com\",\n \"aud\": \"google\",\n \"typ\": \"savetowallet\",\n \"iat\": 1368029586,\n \"payload\": {\n \"eventTicketClasses\": [{\n ... //Event ticket Class JSON\n }],\n \"eventTicketObjects\": [{\n // Event ticket Object JSON\n }],\n \"flightClasses\": [{\n // Flight Class JSON\n }],\n \"flightObjects\": [{\n // Flight Object JSON\n }],\n \"giftCardClasses\": [{\n // Gift card Class JSON\n }],\n \"giftCardObjects\": [{\n // Gift card Object JSON\n }],\n \"loyaltyClasses\": [{\n // Loyalty Class JSON\n }],\n \"loyaltyObjects\": [{\n // Loyalty Object JSON\n }],\n \"offerClasses\": [{\n // Offer Class JSON\n }],\n \"offerObjects\": [{\n // Offer Object JSON\n }],\n \"transitClasses\": [{\n // Transit Class JSON\n }],\n \"transitObjects\": [{\n // Transit Object JSON\n }]\n },\n \"origins\": [\"http://baconrista.com\", \"https://baconrista.com\"]\n}\n```\n\n### Fields\n\n| Field | Type | Required | Description |\n|------------------------------|---------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `iss` | String | Y | Your Google Cloud service account generated email address. |\n| `aud` | String | Y | Audience. The audience for Google Wallet API Objects will always be `google`. |\n| `typ` | String | Y | Type of JWT. The audience for Google Wallet API Objects will always be `savetowallet`. |\n| `iat` | Integer | Y | Issued at time in seconds since epoch. |\n| `payload` | Object | Y | Payload object. |\n| `payload.eventTicketClasses` | Array | N | Event Ticket Class to save. |\n| `payload.eventTicketObjects` | Array | N | Event Ticket Object to save. |\n| `payload.flightClasses` | Array | N | Flight Class to save. |\n| `payload.flightObjects` | Array | N | Flight Object to save. |\n| `payload.giftCardClasses` | Array | N | Gift Card Class to save. |\n| `payload.giftCardObjects` | Array | N | Gift Card Object to save. |\n| `payload.loyaltyClasses` | Array | N | Loyalty Class to save. |\n| `payload.loyaltyObjects` | Array | N | Loyalty Object to save. |\n| `payload.offerObjects` | Array | N | Offer Object to save. |\n| `payload.offerClasses` | Array | N | Offer Class to save. |\n| `payload.transitObjects` | Array | N | Transit Object to save. |\n| `payload.transitClasses` | Array | N | Transit Class to save. |\n| `origins` | Array | Y | Array of domains to approve for JWT saving functionality. The Google Wallet API button will not render when the `origins` field is not defined. You could potentially get a \"Load denied by X-Frame-Options\" or \"Refused to display\" messages in the browser console when the origins field is not defined. |"]]