אפשר לדרוש שכבת אבטחה נוספת כשמשתמשים מממשים את הכרטיס או ניגשים לכרטיס. מידע נוסף מופיע במאמר הגנה באמצעות נעילת מסך.
הקשה על NFC
המשתמשים יכולים לממש את הכרטיסים שלהם בצורה חלקה באמצעות הקשה NFC. בקישורים הבאים אפשר לקרוא מידע נוסף על
הקשה חכמה ועל
הרשמה ל'הקשה חכמה'.
סריקת ברקוד
כדאי לצרף ברקוד כדי לעזור ללקוחות לסרוק את הכרטיס.
ברקוד סטטי
ניתן להציג ברקוד סטטי על ידי הגדרת object.barcode.
ה-API מספק מגוון של סוגי ברקודים. לפרטים נוספים, ראו סוג Barcode.
ברקוד מסתובב
להגברת האבטחה, ניתן להציג ברקוד מסתובב על ידי הגדרה של
object.rotatingBarcode. ברקודים מסתובבים נראים בדיוק כמו ברקודים רגילים, אבל הם משתנים מדי פעם, בדרך כלל מדי דקה, והטרמינל/הקורא מתוכנת כך שיקבל רק את האחרון. כך מפחיתים את הסיכונים הכרוכים בצילום מסך של ברקוד, במיוחד בגניבת כרטיסים או בהפצת כרטיסים לא מורשית. לפרטים נוספים, ראו סוג RotatingBarcode.
אנימציה של אבטחה
דרך נוספת למנוע ניצול לרעה של צילום מסך היא על ידי הצגת אנימציית אבטחה של ברקוד, שתומכת באימות אנושי של כרטיס.
המניפסט הפיזי של אנימציית אבטחה הוא קו מתאר זוהר מסביב לברקוד של
הכרטיס. האנימציה המנצנצת הזו מופעלת רק כשהמכשיר נמצא בתנועה, כך שניתן לבדוק
את תוקף הכרטיס על ידי הטיית המכשיר. מצד שני, אם מחזיקים את המכשיר באופן יציב,
רק אנימציית האבטחה הצבעונית מתווספת בלולאה.
כדי להפעיל את אנימציית האבטחה של כרטיס מסוים, מגדירים במחלקה של הכרטיס AnimationType
את הערך FOIL_SHIMMER בשדה SecurityAnimation.
באיור 1 בהמשך אפשר לראות דוגמה לאופן שבו אנימציית האבטחה מופיעה כשהיא מופעלת:
איור 1.
הגנה באמצעות נעילת מסך
כדי להגן על הגישה של הלקוח לכרטיס, אפשר לדרוש נעילת מסך
בכל פעם שמוסיפים את הכרטיס או ניגש אליו. אפשר לעשות זאת על ידי הגדרה של class.viewUnlockRequirement.
לפרטים נוספים, ראו סוג ViewUnlockRequirement.
[[["התוכן קל להבנה","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-09-04 (שעון UTC)."],[[["\u003cp\u003ePasses can be redeemed via NFC tap or barcode scan, offering users flexible options.\u003c/p\u003e\n"],["\u003cp\u003eRotating barcodes and security animations enhance security by mitigating risks like ticket theft and unauthorized resale.\u003c/p\u003e\n"],["\u003cp\u003ePasses can include a screen lock requirement for added security, protecting customer access.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers have access to various barcode types and customization options through the API, enabling them to tailor the pass experience.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Pay's Smart Tap technology facilitates seamless redemption through NFC.\u003c/p\u003e\n"]]],["Passes can be redeemed via NFC tap or barcode scan. For barcodes, options include static or rotating types, with rotating barcodes enhancing security by changing regularly. An optional security animation, a shimmering effect triggered by device motion, further validates pass authenticity. Extra security can be added by requiring a screen lock each time a user accesses or adds a pass, configured via `class.viewUnlockRequirement`. The barcode can be added by setting `object.barcode`.\n"],null,["# Redeem an Event ticket\n\nPasses can be redeemed in either of two ways:\n\n- [NFC tap](#use-nfc-tap)\n- [Barcode scan](#use-barcode-scan)\n\nYou can optionally require extra security when users redeem or access their pass. For details,\nsee [Protect with Screen Lock](#protect-with-screen-lock).\n\nNFC tap\n-------\n\nYour users can seamlessly redeem their cards using an NFC tap. Learn more about\n[Smart Tap](/wallet/smart-tap), and\n[sign up](https://support.google.com/pay/merchants/contact/smart_tap_support) for Smart\nTap.\n\nBarcode scan\n------------\n\nHelp your customers scan their Pass by attaching a barcode.\n\n### Static barcode\n\nYou can display a static barcode by setting `object.barcode`.\nThe API provides a variety of barcode types. For more details, see the\n[`Barcode` type](/wallet/tickets/events/rest/v1/Barcode).\n\n### Rotating barcode\n\n\nFor additional security, you can display a rotating barcode by setting\n`object.rotatingBarcode`. Rotating barcodes look just like regular barcodes but\nchange periodically, typically every minute, and the terminal/reader is programmed to only\naccept the most recent one. This reduces the risks associated with barcode screenshotting, in\nparticular ticket theft or unauthorized ticket resale. For more details, see the\n[`RotatingBarcode` type](/wallet/tickets/events/rest/v1/RotatingBarcode).\n\n### Security animation\n\n\nAnother way to prevent screenshot abuse is by displaying the barcode security animation, which\nsupports human-verification of a pass.\n\n\nThe physical manifestation of a security animation is a shimmering outline around the barcode of\nthe pass. This shimmering animation triggers only when the device is in motion so one can test\nthe pass' validity by tilting the device. On the other hand holding the device still will only\nanimate the colorful security animation in loop.\n\n\nTo enable security animation for a pass, in the pass class, set the [`SecurityAnimation`](/wallet/tickets/events/rest/v1/SecurityAnimation)\nfield's [`AnimationType`](/wallet/tickets/events/rest/v1/SecurityAnimation#AnimationType)\nto `FOIL_SHIMMER`.\n\n\nSee Figure 1. below for an example of how the security animation appears when it is enabled:\n\n\n**Figure 1.**\n\nProtect with Screen Lock\n------------------------\n\nTo protect your customer's access to their Pass, you can require a screen\nlock each time they add or access their pass. This can be done by setting `class.viewUnlockRequirement`.\nFor more details, see the\n[`ViewUnlockRequirement` type](/wallet/tickets/events/rest/v1/ViewUnlockRequirement)."]]