イベント チケットを利用する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
パスを利用するには、次の 2 つの方法があります。
必要に応じて、ユーザーがパスを利用したりアクセスする際に追加のセキュリティを要求したりすることもできます。詳しくは
画面ロックで保護するをご覧ください。
NFC タップ
ユーザーは NFC タップを使用してカードをシームレスに利用できます。詳細:
スマートタップ
スマート登録
タップします。
バーコード スキャン
バーコードを添付して、お客様がパスをスキャンできるようにします。
静的バーコード
静的バーコードを表示するには、object.barcode
を設定します。
この API は、さまざまなタイプのバーコードを提供します。詳しくは、
Barcode
型。
ローテーション バーコード
セキュリティ強化のため、この設定でローテーション バーコードを表示することもできます。
object.rotatingBarcode
。ローテーション バーコードは通常のバーコードに似ていますが、
定期的に(通常は 1 分ごと)変更され、ターミナル/リーダーは
最新のものを受け入れますこれにより、バーコードのスクリーンショット撮影に伴うリスクが軽減されます。
特定のチケットの窃取や不正な再販の
目的にも役立ちます詳しくは、
RotatingBarcode
型。
セキュリティ アニメーション
スクリーンショットの不正使用を防ぐもう 1 つの方法は、バーコードのセキュリティ アニメーションを表示することです。
人間によるパスの検証をサポートします。
セキュリティ・アニメーションの物理的な表現は、
表示されます。このきらめきのアニメーションはデバイスが動いているときにのみトリガーされるため、テストできます
デバイスを傾けてパスの有効性を確認します。一方、デバイスを持っている場合は、
カラフルなセキュリティ アニメーションをループでアニメーション化します。
パスのセキュリティ アニメーションを有効にするには、パスクラスで SecurityAnimation
を設定します。
フィールドの AnimationType
FOIL_SHIMMER
まで。
セキュリティ アニメーションが有効になっている場合の表示例については、以下の図 1 をご覧ください。
図 1.
画面ロックで保護する
お客様がパスにアクセスできないようにするために、画面を要求できます
パスを追加またはアクセスするたびにロックされます。これを行うには、class.viewUnlockRequirement
を設定します。
詳しくは、
ViewUnlockRequirement
型。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[null,null,["最終更新日 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)."]]