แนวคิดหลักและคำศัพท์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ผู้ออกบัตร
ผู้ออกบัตรเป็นเจ้าของบัตรและต้องออกบัตรให้ลูกค้า ซึ่งอาจเป็นคุณ นักพัฒนาแอป หรือองค์กรที่คุณเป็นตัวแทน
คุณต้องลงทะเบียนเป็นผู้ออกบัตรก่อนจึงจะเป็นผู้ออกบัตรได้
หมวดหมู่โปรแกรมสะสมคะแนน
โดย Loyalty Class อาจหมายถึงโปรแกรมสะสมคะแนน ผู้ออกบัตรอาจสร้างโปรแกรมสะสมคะแนนหลายรายการ เช่น Standard และ Premium โดยแต่ละโปรแกรมมีสไตล์และรูปลักษณ์เฉพาะตัว
นอกจากสไตล์และรูปลักษณ์แล้ว คุณยังใช้ Loyalty Class เพื่อเปิดใช้ฟีเจอร์เพิ่มเติมได้ด้วย เช่น การแตะอัจฉริยะ รวมถึงการลงทะเบียนและลงชื่อเข้าใช้
ออบเจ็กต์โปรแกรมสะสมคะแนน
ออบเจ็กต์โปรแกรมสะสมคะแนนเป็นอินสแตนซ์ของคลาสโปรแกรมสะสมคะแนน สร้างอินสแตนซ์ Loyalty Object ใหม่สำหรับลูกค้าแต่ละรายที่ลงทะเบียนในโปรแกรมสะสมคะแนน
คลาสบัตร
คลาสสะสมคะแนนเป็นคลาสของบัตรประเภทหนึ่ง Pass Class จะอธิบายข้อมูลทั่วไปสำหรับ Pass Object ที่เกี่ยวข้อง เช่น รูปแบบและลักษณะที่ปรากฏ โดยไม่รวมรายละเอียดของลูกค้า
คลาสอื่นๆ ของบัตร ได้แก่
- บอร์ดดิ้งพาส
- ตั๋วกิจกรรม
- บัตรของขวัญ
- ข้อเสนอพิเศษ
- บัตรโดยสาร
- การ์ดยืนยันการฉีดวัคซีน
ออบเจ็กต์การส่ง
ออบเจ็กต์ความภักดีเป็นออบเจ็กต์ Pass ประเภทหนึ่ง ออบเจ็กต์ Pass คืออินสแตนซ์ของคลาส Pass ที่เกี่ยวข้อง เช่นเดียวกับออบเจ็กต์โปรแกรมสะสมคะแนน สร้างออบเจ็กต์บัตร
สำหรับลูกค้าแต่ละรายที่ออกบัตร
Pass Object มีข้อมูลเฉพาะของลูกค้า เช่น สามารถใช้เพื่อระบุว่าลูกค้ามีตั๋วเครื่องบิน แต่ยังระบุว่าได้จัดสรรที่นั่งใดในเที่ยวบินนั้น
บัญชีบริการ
บัญชีบริการเป็นข้อมูลประจำตัวที่ใช้เรียก Google Wallet API
อย่าลืมให้สิทธิ์เข้าถึง Google Wallet API กับบัญชีบริการนี้
คีย์บัญชีบริการ
คีย์บัญชีบริการคือข้อมูลเข้าสู่ระบบที่ใช้เพื่อตรวจสอบสิทธิ์แอปพลิเคชันในฐานะบัญชีบริการ คีย์บัญชีบริการมีความละเอียดอ่อนสูงและ
ต้องเก็บไว้เป็นส่วนตัว หากบุคคลที่สามมีสิทธิ์เข้าถึงคีย์บัญชีบริการ ก็จะระบุตนเองว่าเป็นบัญชีบริการและดำเนินการที่บัญชีบริการได้รับอนุญาตได้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eThe pass issuer, who can be you or your organization, must register and issue passes to customers.\u003c/p\u003e\n"],["\u003cp\u003eLoyalty programs are represented by Loyalty Classes, which define style, appearance, and features like Smart Tap.\u003c/p\u003e\n"],["\u003cp\u003eA Loyalty Object is created for each customer enrolled in a loyalty program, and it's an instance of a Loyalty Class, which is a type of Pass Class.\u003c/p\u003e\n"],["\u003cp\u003ePass Objects store customer-specific information and are instances of Pass Classes, which can represent various types like boarding passes, event tickets, and gift cards.\u003c/p\u003e\n"],["\u003cp\u003eA service account with a securely stored key is used to authenticate your application with the Google Wallet API.\u003c/p\u003e\n"]]],["Passes issuers register to create loyalty programs (Loyalty Classes) with unique styles and features. Each customer enrolled gets a Loyalty Object, an instance of the Loyalty Class. Pass Classes, including Loyalty Classes, define general pass details. Each customer receives a Pass Object, an instance of a Pass Class, containing customer-specific information. A service account accesses the Google Wallet API, authenticated by a private service account key.\n"],null,["# Key concepts and terminology\n\nPass issuer\n-----------\n\nThe Passes issuer owns the pass and must issue passes to their customers. This\ncan be you, the developer, or the organization that you represent.\n\nIn order to become a Passes Issuer, you must first register as an Issuer.\n\nLoyalty Class\n-------------\n\nA Loyalty Class can be thought of as loyalty program. An issuer might create\nmultiple loyalty programs like *Standard* and *Premium*, each with their own\ndistinctive style and appearance.\n\nIn addition to style and appearance, Loyalty Classes can also be used to enable\nadditional features like Smart Tap, and the Enrollment and Sign In.\n\nLoyalty Object\n--------------\n\nA Loyalty Object is an instance of a Loyalty Class. Create a new Loyalty Object\ninstance for each customer that's enrolled in a loyalty program.\n\nPass Class\n----------\n\nA Loyalty Class is a type of Pass Class. Pass Classes describe general\ninformation for related Pass Objects such as style and appearance, and don't\ninclude customer details.\n\nOther types of Pass Classes include:\n\n- Boarding pass\n- Event tickets\n- Gift cards\n- Offers\n- Transit passes\n- Vaccine cards\n\nPass Object\n-----------\n\nA Loyalty Object is a type of Pass Object. Like Loyalty Objects, a Pass Object\nis an instance of a corresponding Pass Class. Create a Pass Object\nfor each customer that's issued a pass.\n\nPass Objects contains customer-specific information. For example, it can be used\nto identify that a customer not only has a ticket for a flight, but also\nidentify which seat on the flight they've been allotted.\n\nService account\n---------------\n\nThe service account is the identity that's used to call the Google Wallet API.\nBe sure to grant permission to access the Google Wallet API to this service account.\n\nService account key\n-------------------\n\nThe service account key is the credential used to authenticate your application\nas the service account. The service account key is highly sensitive and\nmust be kept private. If a third party has access to the service account\nkey, they can identify themselves as the service account and perform\nactions that the service account is permitted to perform."]]