ย้ายและยกเลิกการลิงก์ตั๋ว Flow สำหรับ Motics ใน Google Wallet
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้อธิบายการใช้ขั้นตอนการย้ายและยกเลิกการลิงก์ตั๋วสำหรับตั๋ว Motics เพื่อให้ผู้ใช้ได้รับประสบการณ์การใช้งานที่ดี ผู้ใช้ควรย้ายตั๋ว Motics จากอุปกรณ์หนึ่งไปอีกเครื่องหนึ่ง โดยต้องอยู่ภายในขีดจำกัดที่กำหนดโดยผู้ออกบัตร ผู้ออกบัตรต้องจำกัดตั๋วให้กับอุปกรณ์ 1 เครื่องเท่านั้น ผู้ใช้ต้องลบตั๋วเดิมก่อนบันทึกลงในอุปกรณ์ใหม่ หากผู้ใช้ลบตั๋วเดิมไม่ได้ (อาจเป็นเพราะทำอุปกรณ์หาย) ผู้ออกบัตรต้องยกเลิกการลิงก์ตั๋วจากอุปกรณ์เครื่องเก่า
ข้อกำหนดของขั้นตอนการย้ายและยกเลิกการลิงก์
ขั้นตอน "ย้ายและยกเลิกการลิงก์" ต้องเป็นไปตามข้อกำหนดต่อไปนี้
- ตั๋ว Motics ต้องใช้อุปกรณ์เครื่องละ 1 เครื่องเท่านั้น
- ผู้ใช้ต้องย้ายตั๋ว Motics ไปยังอุปกรณ์ใหม่ได้ในกรณีต่อไปนี้
- การเข้าถึงอุปกรณ์เครื่องเก่า เช่น เมื่ออัปเกรดเป็นอุปกรณ์ใหม่
- ไม่สามารถเข้าถึงอุปกรณ์เครื่องเก่า เช่น เมื่ออุปกรณ์สูญหายหรือถูกขโมย
- จำนวนการย้ายหรือการเปิดใช้งานตั๋วควรถูกจำกัดโดยการควบคุมที่เหมาะสมในฝั่งผู้ออกบัตรของ Motics ตามที่ระบุไว้ในข้อกำหนดทางธุรกิจของ PTO
ประสบการณ์ของผู้ใช้
ส่วนนี้จะอธิบายรายละเอียดเพิ่มเติมของ 2 สถานการณ์ที่แตกต่างกันสำหรับประสบการณ์ของผู้ใช้ ขึ้นอยู่กับว่าผู้ใช้ยังมีสิทธิ์เข้าถึงอุปกรณ์เครื่องเก่าเมื่อพยายามย้ายตั๋ว Motics
ผู้ใช้มีสิทธิ์เข้าถึงอุปกรณ์เครื่องเก่า
ในกรณีดังกล่าว ผู้ใช้สามารถเริ่มขั้นตอนการย้ายจากอุปกรณ์เดิมได้
- ผู้ใช้ลบตั๋ว Motics ออกจากแอป Wallet บนอุปกรณ์เครื่องเก่า
- ผู้ใช้พบอีเมลยืนยันจากผู้ออกบัตรบนอุปกรณ์ใหม่ หรือลงชื่อเข้าสู่ระบบเว็บช็อปหรือพอร์ทัลการจำหน่ายตั๋ว และคลิกลิงก์บันทึกไปยัง Google Wallet เพื่อบันทึกตั๋วไปยังแอป Google Wallet อีกครั้ง
ผู้ใช้ไม่มีสิทธิ์เข้าถึงอุปกรณ์เครื่องเก่า
เมื่อเข้าถึงอุปกรณ์เครื่องเก่าไม่ได้ ก็ต้องเริ่มขั้นตอนการยกเลิกการลิงก์และย้ายจากพอร์ทัลการจำหน่ายตั๋วของ Webshop หรือด้วยการติดต่อฝ่ายสนับสนุนลูกค้าของผู้ออกบัตรซึ่งสามารถเริ่มขั้นตอนการยกเลิกการลิงก์ในนามของผู้ใช้ได้
- ผู้ใช้พบอีเมลยืนยันจากผู้ออกบัตรที่มีวิธีการโทรหาฝ่ายบริการลูกค้าเพื่อขอความช่วยเหลือหรือเริ่มขั้นตอนการยกเลิกการลิงก์จากเว็บไซต์ผู้ออกบัตรหรือพอร์ทัลจำหน่ายตั๋ว ซึ่งอาจเป็นปุ่มยกเลิกการลิงก์ในพอร์ทัลตั๋ว
- ผู้ออกบัตรยกเลิกการลิงก์ตั๋วจากอุปกรณ์เครื่องเก่าในนามของผู้ใช้ (รายละเอียดเพิ่มเติมในส่วนความรับผิดชอบของผู้ออกบัตร)
- ตั๋วจะใช้งานไม่ได้ (บาร์โค้ดจะไม่สแกน) บนอุปกรณ์เดิมทันทีที่ผู้ออกบัตรยกเลิกการลิงก์
- ผู้ออกบัตรควรระบุคำขอแจ้งปัญหาเดิมเพื่อป้องกันไม่ให้อุปกรณ์ตรวจสอบสแกนตั๋วดังกล่าวอีกต่อไป
- ระบบจะลบตั๋วออกจากอุปกรณ์เครื่องเดิมโดยอัตโนมัติทันทีที่กลับมาออนไลน์อีกครั้ง (ดีที่สุด)
- ผู้ใช้พบอีเมลยืนยันจากผู้ออกบัตรบนอุปกรณ์ใหม่ หรือลงชื่อเข้าสู่ระบบเว็บช็อปหรือพอร์ทัลการจำหน่ายตั๋ว และคลิกลิงก์บันทึกไปยัง Google Wallet เพื่อบันทึกตั๋วไปยังแอป Google Wallet อีกครั้ง
ความรับผิดชอบของผู้ออกบัตร
- ในระหว่างการตั้งค่าเริ่มต้น ผู้ออกบัตรต้อง insert the transitClass ด้วย
multipleDevicesAndHoldersAllowedStatus=ONE_USER_ONE_DEVICE
- อีเมลยืนยันที่ผู้ออกบัตรส่งไปยังผู้ใช้ ณ เวลาที่ซื้อ
จะต้องมีวิธีการย้ายตั๋วไปยังอุปกรณ์ใหม่
- อีเมลยืนยันต้องมีตัวระบุสำหรับตั๋วเพื่อช่วยเหลือในขั้นตอนการสนับสนุน
- หากต้องการลดปริมาณการติดต่อให้เหลือน้อยที่สุด ผู้ออกบัตรควรมีปุ่มยกเลิกการลิงก์ในเว็บช็อปหรือพอร์ทัลตั๋วที่ผู้ใช้จัดการตั๋วได้
- ผู้ออกบัตรมีหน้าที่จำกัดจำนวนครั้งที่สามารถเปิดใช้งานตั๋วได้ ทั้งนี้ก็เพื่อป้องกันไม่ให้ผู้ใช้ย้ายตั๋วเดียวกันไปกลับระหว่างอุปกรณ์ต่างๆ (ทั้ง 2 อย่างที่เข้าสู่ระบบบัญชีเดียวกันใน Wallet) อย่างไม่มีกำหนด
- ผู้ออกจำเป็นต้องติดตามจำนวนครั้งที่มีการเรียกปลายทางการเปิดใช้งานสำหรับ objectId เดียวกัน และปฏิเสธคำขอเปิดใช้งานหากมีการใช้งานเกินขีดจำกัด
- เนื่องจากผู้ออกบัตรแต่ละรายมีกฎของตัวเองเกี่ยวกับจำนวนครั้งที่สามารถย้ายตั๋วได้ Google จึงกำหนดให้ผู้ออกบัตรต้องจำกัดการย้ายตั๋วด้วยตนเอง
- หากผู้ใช้ต้องการยกเลิกการลิงก์ตั๋วผ่านการติดต่อทีมสนับสนุนลูกค้า ให้ทำดังนี้
- หากผู้ใช้นำตั๋วออกจากอุปกรณ์เครื่องเก่าไม่ได้ ผู้ออกบัตรจะยกเลิกการลิงก์ตั๋วโดยโทรไปที่
transitObject:patch
ด้วย {hasLinkedDevice:false}
เพื่อรับ objectId
ของตั๋ว
- ผู้ออกบัตรจะต้องค้นหา objectId ของตั๋วที่ระบุ ค้นหารหัสนี้ตามตัวระบุที่ผู้ใช้ได้รับในอีเมลยืนยัน
- หากผู้ใช้เริ่มขั้นตอนการยกเลิกการลิงก์ในเว็บช็อปหรือพอร์ทัลตั๋ว
- ผู้ออกบัตรยกเลิกการลิงก์ตั๋วโดยโทรหา
transitObject:patch
ด้วย {hasLinkedDevice:false}
เพื่อรับ objectId
ของตั๋ว
- ผู้ออกบัตรควรปฏิเสธคำขอแจ้งปัญหาเดิม เพื่อไม่ให้มีอุปกรณ์ตรวจสอบสแกนตั๋วดังกล่าวอีกต่อไป
ความรับผิดชอบของ Google
ในการตอบสนองต่อการเรียก transitObject:patch
ด้วย {hasLinkedDevice:false}
นั้น Google จะเพิกถอนใบรับรองที่มีอยู่ (หากมี) กับเซิร์ฟเวอร์ Motics หากผู้ใช้ยังใช้อุปกรณ์เครื่องเดิมกับตั๋วเดิม บาร์โค้ดจะใช้ไม่ได้อีกต่อไปเพราะจะถูกลบจากอุปกรณ์เครื่องเก่าตราบใดที่ยังออนไลน์หรือกลับมาออนไลน์อีกครั้ง
แผนภาพลำดับ
รูปที่ 1 ขั้นตอนการยกเลิกการลิงก์ตั๋ว Motics 
รูปที่ 1 แสดงการโทรของ transitObject:patch
และ pruneTree()
ที่เกิดขึ้นเพื่อยกเลิกการลิงก์ตั๋วเมื่อผู้ใช้เข้าถึงอุปกรณ์เครื่องเก่าไม่ได้แล้ว
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eMotics tickets are designed for single-device use, requiring users to move a ticket from their old device to a new one when switching devices.\u003c/p\u003e\n"],["\u003cp\u003eUsers with access to their old device can move a ticket by deleting it from the old device and then resaving it to their new device via a confirmation email or the issuer's platform.\u003c/p\u003e\n"],["\u003cp\u003eIf the old device is inaccessible, users must initiate an unlink flow through the issuer's customer support or online portal, after which they can resave the ticket to their new device.\u003c/p\u003e\n"],["\u003cp\u003eIssuers are responsible for implementing controls to limit the number of times a ticket can be moved and for unlinking tickets from lost or stolen devices using the \u003ccode\u003etransitObject:patch\u003c/code\u003e API call.\u003c/p\u003e\n"],["\u003cp\u003eGoogle assists in the unlink flow by revoking the old ticket's certificate and ensuring it's unusable, with the old ticket automatically deleted from the device when it comes online.\u003c/p\u003e\n"]]],["Motics ticket issuers must enable users to move tickets between devices, limiting usage to one device at a time. When a user has access to the old device, they must delete the ticket before saving it to a new device. Without access, the issuer must unlink the ticket via a web portal or customer support. The issuer updates the ticket status via an API call, which revokes the old device's ticket certificate, deletes the ticket from the old device and then should also denylist it to prevent it from being scanned. The issuer is also responsible for limiting the number of ticket moves.\n"],null,["# Move & Unlink Flow for Motics tickets in Google Wallet\n\nThis page describes implementing a move and unlink ticket flow for Motics\ntickets. To provide a good user experience, a user should be able to move their\nMotics ticket from one device to another, within certain limits defined by the\nissuer. The issuer has to restrict a ticket to one device. The user must delete\nthe original ticket before saving it to a new device. If the user cannot delete\nthe original ticket (perhaps because they lost the device), the issuer must\nunlink the ticket from the old device.\n\nMove \\& Unlink Flow Requirements\n--------------------------------\n\nThe Move \\& Unlink flow has to fulfil the following requirements:\n\n- A Motics ticket must only be usable on one device at a time.\n- The user must be able to move the Motics ticket to a new device in these cases:\n - Access to old device, for example when upgrading to a new device.\n - No access to old device, for example when a device is lost or stolen.\n- The number of moves or ticket activations should be limited by suitable controls on the Motics ticket issuer side, as defined by the PTO's business requirements.\n\nUser Experience\n---------------\n\nThis section describes in more detail the two different scenarios for the User\nExperience, depending on whether the user still has access to their old device\nwhen attempting to move a Motics ticket.\n\n### User has access to old device\n\nIn such cases, the user can initiate the move flow from their old device:\n\n1. The user deletes the Motics ticket from the Wallet app on their old device.\n2. The user finds the confirmation email from the issuer on their new device or logs in to the ticketing webshop or portal and clicks a Save to Google Wallet link to resave the ticket to the Google Wallet app.\n\n### User does not have access to old device\n\nWhen the user does not have access to their old device, they need to initiate\nthe unlink and move flow from either the webshop ticketing portal, or by\ncontacting the customer support of the issuer, that can initiate the unlink flow\non the user's behalf.\n\n1. The user finds the confirmation email from the issuer with instructions to call customer service for assistance or starts an unlink flow from the issuer website or ticketing portal. This could be an unlink button on the ticketing portal.\n2. The issuer unlinks the ticket from the old device on behalf of the user (more details in the [Issuer Responsibilities](#issuer-responsibilities) section).\n3. The ticket will be unusable (barcode won't scan) on the original device as soon as the issuer unlinks it.\n4. The issuer should denylist the old ticket, to ensure it can no longer be scanned by inspection devices.\n5. The ticket will automatically be deleted from the original device as soon as it comes online again (best-effort).\n6. The user finds the confirmation email from the issuer on their new device or logs in to the ticketing webshop or portal and clicks a Save to Google Wallet link to resave the ticket to the Google Wallet app.\n\nIssuer Responsibilities\n-----------------------\n\n- During initial setup the issuer must [insert the transitClass](/wallet/tickets/transit-passes/qr-code/motics/technical-details#transitClassInsert) with `multipleDevicesAndHoldersAllowedStatus=ONE_USER_ONE_DEVICE`.\n- The confirmation email that the issuer sends to the user at purchase time has to contain instructions for how to move the ticket to a new device.\n- The confirmation email has to contain an identifier for the ticket to the help in the support process.\n- To keep contact volume to a minimum, the issuer should also have an unlink button on their webshop or ticket portal where a user can manage their ticket.\n- The issuer is responsible for limiting the number of times a ticket can be activated. This is to avoid users moving the same ticket back and forth between devices (both logged into the same account on Wallet) indefinitely.\n - The issuer has to keep track of how many times the activation endpoint is called for the same objectId, and reject the activation request if it exceeds the limit.\n - Since each issuer has its own rules on how many times a ticket can be moved, Google requires that issuers handle limiting ticket moves on their end.\n- If the user wants to unlink the ticket through contacting customer support:\n - If the user cannot remove the ticket from the old device, the issuer unlinks the ticket by calling `transitObject:patch` with `{hasLinkedDevice:false}` for the `objectId` of the ticket.\n - The issuer will need to find the objectId for the given ticket. They should look this up based on the identifier given to the user in the confirmation email.\n- If the user initiates the unlink flow on the webshop or ticket portal:\n - The issuer unlinks the ticket by calling `transitObject:patch` with `{hasLinkedDevice:false}` for the `objectId` of the ticket.\n- The issuer should denylist the old ticket, so that it can no longer be scanned by inspection devices.\n\nGoogle Responsibilities\n-----------------------\n\nIn response to receiving the `transitObject:patch` with\n`{hasLinkedDevice:false}` call, Google will revoke the existing certificate (if\nthere is one) with the Motics server. If the user does still have their old\ndevice with the original ticket, the barcode will no longer work as it will be\ndeleted from the old device as long as it is online or comes online again.\n\n### Sequence Diagram\n\n**Figure 1.** Motics Ticket Unlink Flow\n\nFigure 1 shows the `transitObject:patch` and `pruneTree()` calls that take place\nto unlink a ticket when the user no longer has access to their old device."]]