অটো লিঙ্কড পাস
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পটভূমি
স্বয়ংক্রিয় লিঙ্কযুক্ত পাস বৈশিষ্ট্য আপনাকে এমন একজন ব্যবহারকারীকে অতিরিক্ত পাস পাঠাতে দেয় যার ইতিমধ্যেই তাদের Google ওয়ালেটে আপনার বিদ্যমান পাস রয়েছে৷ একজন ব্যবহারকারী প্রাথমিক (প্রধান) পাস সংরক্ষণ করলে আপনি একটি প্রাথমিক পাসে প্রি-লিঙ্ক পাসও করতে পারেন। স্বয়ংক্রিয় লিঙ্কযুক্ত পাসটিকে প্রাথমিক পাসের সাথে গোষ্ঠীভুক্ত করা হয় প্রাথমিক পাসের উপরে একটি কলআউট সহ ব্যবহারকারীকে জানিয়ে দেয় যে একটি নতুন পাস লিঙ্ক করা হয়েছে। নিম্নলিখিত পাস প্রকারগুলি প্রাথমিক বা লিঙ্কযুক্ত পাস হিসাবে সমর্থিত;
- অনুষ্ঠানের টিকিট
- বোর্ডিং পাস
- ট্রানজিট পাস
- অফার
- উপহার কার্ড
- আনুগত্য পাস
- সাধারণ পাস
 |  |
একটি নতুন পাস যোগ করা হয়েছে যে কলআউট সঙ্গে প্রাথমিক পাস | প্রাথমিক পাসের সাথে নতুন পাস লিঙ্ক করা হয়েছে |
কেস ব্যবহার করুন
একটি বিদ্যমান পাসের সাথে পাস লিঙ্ক করার জন্য আপনার বিভিন্ন ব্যবহারের ক্ষেত্রে থাকতে পারে। কিছু উদাহরণ অন্তর্ভুক্ত:
- একটি বিদ্যমান আনুগত্য কার্ডের সাথে একটি অফার লিঙ্ক করুন।
- বোর্ডিং পাস বা ইভেন্ট টিকিটের সাথে খাবারের ভাউচার লিঙ্ক করুন।
- একটি ইভেন্ট টিকিটের সাথে একটি পার্কিং পাস লিঙ্ক করুন।
অটো লিঙ্কড পাস ব্যবহার করার সময় কিছু বিবেচনা
- প্রাথমিক অবজেক্ট এবং লিঙ্ক করা অবজেক্টকে অবশ্যই একই ইস্যুকারী আইডি ব্যবহার করতে হবে।
- প্রাথমিক বস্তুর প্রতি 50টি লিঙ্কযুক্ত বস্তুর সীমা রয়েছে।
- সংযুক্ত পাসগুলিকে স্বয়ংক্রিয়ভাবে ঠেলে দেওয়া নিশ্চিত নয় এবং সর্বোত্তম প্রচেষ্টা হিসাবে বিবেচিত হয়। ব্যবহারকারীরা স্বয়ংক্রিয় লিঙ্কযুক্ত পাসগুলি গ্রহণ করা থেকে অপ্ট আউট করতে পারেন৷ যদি ব্যবহারের কেসটি জটিল হয় এবং ব্যবহারকারীকে অবশ্যই লিঙ্কযুক্ত পাসটি গ্রহণ করতে হবে, তবে ব্যবহারকারী পাসটি যোগ করেছেন তা নিশ্চিত করতে আমরা অন্য চ্যানেলের মাধ্যমে যোগাযোগ করার পরামর্শ দিই।
- Google Wallet AUP- এর আপডেটগুলি অটো লিঙ্কড পাসগুলির ব্যবহার সংক্রান্ত নির্দেশিকা অন্তর্ভুক্ত করে যা অবশ্যই মেনে চলতে হবে৷
ইন্টিগ্রেশন পদক্ষেপ
আপনি যদি ইতিমধ্যে একটি প্রাথমিক বস্তু তৈরি করে থাকেন তাহলে আপনি ধাপ 1 এড়িয়ে যেতে পারেন।
- প্রয়োজনীয় পরামিতিগুলির সাথে তালিকাভুক্ত যেকোনো পাস টাইপের একটি বস্তু তৈরি করুন। এটি প্রাথমিক বস্তু।
- তালিকাভুক্ত যেকোনো পাস টাইপের আরেকটি অবজেক্ট তৈরি করুন। এই লিঙ্ক করা বস্তু হতে যাচ্ছে.
- প্রাইমারি অবজেক্ট সেভ করার আগে বা পরে, লিঙ্কড অবজেক্ট আইডিস প্যারামিটারে লিঙ্ক করা অবজেক্টের আইডি সহ প্রাইমারি অবজেক্ট আপডেট করুন ।
একটি প্রাথমিক পাসে LinkedObjectIds সেট করার জন্য একটি ন্যূনতম পেলোড প্রয়োজন। 3টি প্রয়োজনীয় পরামিতি অন্তর্ভুক্ত;
- ISSUERID।PRIMARY_OBJECT_ID
- ISSUERID।PRIMARY_CLASS_ID
- ISSUERID৷LINKED_OBJECT_ID৷
একটি পাস অবজেক্টে একটি লিঙ্ক করা অবজেক্ট যোগ করার জন্য JSON অনুরোধের উদাহরণ
…
{
"id": "ISSUERID.PASS_OBJECTID",
"classId": "ISSUERID.PASS_CLASSID",
"barcode": {
"type": "qrCode",
"value": "QR code"
},
"linkedObjectIds": {"ISSUERID.LINKED_PASS_OBJECTID"}
}
…
একটি পাস অবজেক্টের সাথে একটি বস্তু লিঙ্ক করার পরে উদাহরণ JSON প্রতিক্রিয়া
…
"state": "active",
"linkedObjectIds": {
"ISSUERID.LINKED_PASS_OBJECTID"
}
…
প্রত্যাশিত আচরণ
সফল প্রতিক্রিয়া পাওয়ার পর, আপনার আপডেট করা পাস সহ ডিভাইসগুলিকে লিঙ্ক করা পাস পাওয়া উচিত। এই লিঙ্ক করা পাসটিকে প্রাথমিক পাসের সাথে একত্রিত করা হবে। ব্যবহারকারীরা ডানদিকে সোয়াইপ করে লিঙ্ক করা পাস দেখতে পারেন।
ব্যতিক্রম হ্যান্ডলিং
সম্ভাব্য ত্রুটিগুলি API এর ভুল ব্যবহারের সাথে ঘটতে পারে যা অন্তর্ভুক্ত করতে পারে;
বার্তা | কারণ |
---|
প্রাথমিক অবজেক্ট এবং লিঙ্ক করা অবজেক্ট একই ইস্যুকারী আইডি শেয়ার করে না। | আপনি অন্য ইস্যুকারীর বস্তুর সাথে একটি লিঙ্কযুক্ত বস্তু সংযুক্ত করতে পারবেন না। |
প্রাইমারি অবজেক্ট এবং লিঙ্কড অবজেক্ট একই অবজেক্টকে বোঝায়। | আপনি লিঙ্কডঅবজেক্টের মতো একই বস্তু সংযুক্ত করতে পারবেন না। |
লিঙ্কযুক্ত বস্তুর অস্তিত্ব নেই। | লিঙ্ক করা বস্তুটি ইতিমধ্যেই Wallet API-এ ঢোকানো উচিত। |
লিঙ্ক করা অবজেক্ট ইতিমধ্যেই অন্য লিঙ্কযুক্ত বস্তু আছে। নেস্টেড লিঙ্ক করা অবজেক্ট যোগ করা যাবে না। | লিঙ্কযুক্ত বস্তুর অন্য লিঙ্কযুক্ত বস্তু থাকতে পারে না। |
বস্তুটি ইতিমধ্যেই অন্য বস্তুর সাথে লিঙ্ক করা আছে। নেস্টেড লিঙ্ক করা অবজেক্ট যোগ করা যাবে না। | প্রাইমারি অবজেক্ট নিজেই একটি লিঙ্কড অবজেক্ট হতে পারে না। |
আর কোনো লিঙ্ক করা অবজেক্ট যোগ করা যাবে না, সীমা ছাড়িয়ে গেছে। | প্রাথমিক পাসের জন্য 50টি সংযুক্ত পাসের সীমা পৌঁছে গেছে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eAuto Linked Passes enable you to send additional passes to users who already have an existing pass from your organization in their Google Wallet, pre-linking them for a seamless user experience.\u003c/p\u003e\n"],["\u003cp\u003eThis feature supports various pass types including Event tickets, Boarding passes, Transit passes, Offers, Gift cards, Loyalty passes, and Generic passes, offering flexibility for different use cases.\u003c/p\u003e\n"],["\u003cp\u003eWhen utilizing Auto Linked Passes, ensure the primary and linked objects share the same issuerId and be aware of the 50 linked object limit per primary object.\u003c/p\u003e\n"],["\u003cp\u003eWhile automatic delivery of linked passes is best-effort and user-configurable, the feature offers a convenient way to provide users with related passes, enhancing their experience with your services.\u003c/p\u003e\n"]]],["Auto Linked Passes enable grouping additional passes with an existing primary pass in Google Wallet. Supported pass types include event tickets, boarding passes, and loyalty passes. To link passes, create primary and linked objects, then update the primary object with the linked object's ID using the `linkedObjectIds` parameter. Both objects must share the same `issuerId`. There is a limit of 50 linked passes. Errors may occur if linked objects are from different issuers or the 50 limit is reached.\n"],null,["# Auto Linked Passes\n\n#### Background\n\nThe Auto Linked Passes feature lets you send additional passes to a\nuser who already has your existing pass in their Google Wallet. You can also\npre-link passes to a primary pass when a user saves the **primary**\n(main) pass. The Auto Linked Pass is grouped with the primary pass with a\ncallout above the primary pass informing the user that a new pass has been\nlinked. The following pass types are supported as primary or linked passes;\n\n- Event ticket\n- Boarding pass\n- Transit pass\n- Offer\n- Gift card\n- Loyalty pass\n- Generic pass\n\n|--------------------------------------------------------------|-------------------------------------|\n| | |\n| Primary pass with the callout that a new pass has been added | New pass linked to the primary pass |\n\n#### Use Cases\n\nYou may have different use cases for linking passes to an existing pass. Some\nexamples include:\n\n- Link an offer to an existing loyalty card.\n- Link a meal voucher to a boarding pass or event ticket.\n- Link a parking pass to an event ticket.\n\n#### Some considerations when using Auto Linked Passes\n\n- The primary object and linked object must use the same issuerId.\n- There is a limit of 50 linked objects per primary object.\n- Pushing linked passes automatically is not guaranteed and considered best-effort. Users can opt out of receiving Auto Linked Passes. If the use case is critical and the user must receive the linked pass, we recommend communicating through another channel to ensure the user adds the pass.\n- Updates to the [Google Wallet AUP](https://payments.developers.google.com/terms/aup) include guidance on the use of Auto Linked Passes which must be adhered to.\n\n#### Integration Steps\n\nIf you have already created a **primary** object you can skip step 1.\n\n1. Create an [object](/wallet/generic/use-cases/create) of any pass type listed with the required parameters. This is the **primary** object.\n2. Create another object of any pass type listed. This is going to be the **linked** object.\n3. Either before or after the primary object is saved, [update](/wallet/generic/use-cases/update) the primary object with the ID of the linked object in the linkedObjectIds parameter.\n\nThere is a minimum payload required to set the linkedObjectIds on a primary\npass. The 3 required parameters include;\n\n1. ISSUERID.PRIMARY_OBJECT_ID\n2. ISSUERID.PRIMARY_CLASS_ID\n3. ISSUERID.LINKED_OBJECT_ID\n\n#### Example JSON Request to add a linked object to a pass object\n\n```carbon\n ...\n {\n \"id\": \"ISSUERID.PASS_OBJECTID\",\n \"classId\": \"ISSUERID.PASS_CLASSID\",\n \"barcode\": {\n \"type\": \"qrCode\",\n \"value\": \"QR code\"\n },\n \"linkedObjectIds\": {\"ISSUERID.LINKED_PASS_OBJECTID\"}\n }\n ...\n```\n\n#### Example JSON Response after linking an object to a pass object\n\n```scdoc\n …\n \"state\": \"active\",\n \"linkedObjectIds\": {\n \"ISSUERID.LINKED_PASS_OBJECTID\"\n }\n …\n```\n\n#### Expected behavior\n\nAfter receiving a successful response, devices with the pass you updated\nshould receive the linked pass. This linked pass will be grouped together with\nthe primary pass. Users can see the linked pass by swiping right.\n\n#### Exception handling\n\nPotential errors may happen with incorrect use of the API which can\ninclude;\n\n| **Message** | **Reason** |\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------|\n| Primary object and linked object don't share the same issuer ID. | You cannot attach a linked object to another issuer's object. |\n| Primary object and linked object refer to the same object. | You cannot attach the same object as the linkedObject. |\n| Linked object does not exist. | The linked object should already be inserted into the Wallet API. |\n| Linked object already has another linked object. Cannot add nested linked objects. | Linked objects cannot have another linked object. |\n| Object is already linked to another object. Cannot add nested linked objects. | Primary object cannot be a linked object by itself. |\n| Cannot add any more linked objects, limit exceeded. | The limit of 50 linked passes has been reached for the primary pass. |"]]