Adres e-mail wygenerowany przez Twoje konto usługi Google Cloud.
aud
Ciąg znaków
T
Odbiorcy. Odbiorcą obiektów interfejsu Google Wallet API będzie zawsze
google
typ
Ciąg znaków
T
Typ tokena JWT. Odbiorcą obiektów interfejsu Google Wallet API będzie zawsze
savetowallet
iat
Liczba całkowita
T
Czas wydania w sekundach od początku epoki.
payload
Obiekt
T
Obiekt ładunku.
payload.eventTicketClasses
Tablica
N
Klasa biletu na wydarzenie do zapisania.
payload.eventTicketObjects
Tablica
N
Obiekt biletu na wydarzenie do zapisania.
payload.flightClasses
Tablica
N
Klasa lotu, która ma być zapisana.
payload.flightObjects
Tablica
N
Obiekt lotu do zapisania.
payload.giftCardClasses
Tablica
N
Klasa karty podarunkowej do zapisania.
payload.giftCardObjects
Tablica
N
Obiekt karty podarunkowej do zapisania.
payload.loyaltyClasses
Tablica
N
Klasa lojalnościowa do zapisania.
payload.loyaltyObjects
Tablica
N
Obiekt lojalnościowy do zapisania.
payload.offerObjects
Tablica
N
Obiekt oferty do zapisania.
payload.offerClasses
Tablica
N
Klasa oferty, którą chcesz zapisać.
payload.transitObjects
Tablica
N
Obiekt transportu publicznego do zapisania.
payload.transitClasses
Tablica
N
Klasa transportu publicznego do zapisania.
origins
Tablica
T
Tablica domen do zatwierdzenia na potrzeby funkcji zapisu tokena JWT. Interfejs API Portfela Google
Przycisk nie zostanie wyświetlony, jeśli pole origins nie jest zdefiniowane. Możesz
może wyświetlić się komunikat o odrzuceniu obciążenia przez X-Frame-Options. lub „Odmowa wyświetlenia” wiadomości w
w konsoli przeglądarki, gdy pole origin nie jest zdefiniowane.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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,["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\nFields\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. |"]]