সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ভূমিকা
ঘূর্ণায়মান বারকোডগুলি নিয়মিত বারকোডগুলির মতো দেখতে কিন্তু পর্যায়ক্রমে পরিবর্তন হয়, সাধারণত প্রতি মিনিটে, এবং টার্মিনাল/রিডার শুধুমাত্র সাম্প্রতিকটি গ্রহণ করার জন্য প্রোগ্রাম করা হয়। এই নিরাপত্তা ব্যবস্থা বারকোড স্ক্রিনশটিংয়ের সাথে সম্পর্কিত ঝুঁকি কমায়, বিশেষ করে টিকিট চুরি বা অননুমোদিত টিকিট পুনঃবিক্রয়। এনএফসি সমর্থন না করার কারণে (হার্ডওয়্যারের অভাব, বা সফ্টওয়্যার নিষ্ক্রিয়) স্মার্ট ট্যাপের সুবিধা নিতে পারে না এমন ডিভাইসগুলির জন্য ঘোরানো বারকোডগুলি ফলব্যাক হিসাবেও কাজ করতে পারে৷
ব্যবহারকারীর ডিভাইসে, পাসটি কীভাবে কনফিগার করা হয়েছে এবং ডিভাইসের ক্ষমতার উপর নির্ভর করে একটি নির্দিষ্ট সময়ে শুধুমাত্র একটি রিডেম্পশন মেকানিজম ব্যবহার করা হয়। অগ্রাধিকারের ক্রমানুসারে, নিম্নলিখিত রিডেম্পশন প্রকারগুলি ব্যবহার করা হয়:
স্মার্ট ট্যাপ: যদি একটি স্মার্ট-ট্যাপ পেলোড নির্দিষ্ট করা থাকে এবং যদি ডিভাইসটি NFC/HCE সমর্থন করে
দ্রষ্টব্য, এটি "কোড দেখান" ক্লিক করে ব্যবহারকারীর দ্বারা ওভাররাইড করা যেতে পারে যা ঘূর্ণায়মান বারকোড/স্ট্যাটিক বারকোডের প্রদর্শনকে বাধ্য করবে৷
ঘূর্ণায়মান বারকোড: যদি একটি ঘূর্ণায়মান বারকোড পেলোড নির্দিষ্ট করা হয়
স্ট্যাটিক বারকোড: যদি একটি বারকোড পেলোড নির্দিষ্ট করা হয়
একাধিক রিডেম্পশন পেলোড নির্দিষ্ট করা নিশ্চিত করতে পারে যে সমস্ত ব্যবহারকারী সমর্থিত কিন্তু নিরাপত্তার প্রভাব থাকতে পারে। বিশেষ করে, একটি ঘূর্ণায়মান বারকোডের জন্য একটি ফলব্যাক হিসাবে একটি স্ট্যাটিক বারকোড ব্যবহার করা ঘূর্ণায়মান বারকোডগুলি ব্যবহার করার বেশিরভাগ সুরক্ষা সুবিধাগুলিকে অস্বীকার করে৷ একটি স্ট্যাটিক বারকোড ফলব্যাক শুধুমাত্র ওয়েব ভিউতে বা ক্লায়েন্টগুলিতে দেখানো হবে যেগুলি ঘোরানো বারকোড সমর্থন করে না৷ আজ থেকে, আমরা আশা করি যে সমস্ত Google Wallet ক্লায়েন্ট ঘূর্ণায়মান বারকোড সমর্থন করবে৷
ফ্লো সংরক্ষণ করুন
Google Wallet API বিভিন্ন ফ্লো অফার করে, যার মধ্যে রয়েছে:
সময় বাঁচাতে বা সময়ের আগে উপহার কার্ডের ক্লাস তৈরি করা
আপনার জেডব্লিউটি-তে সম্পূর্ণ অবজেক্টগুলি পাঠানো, বা সময়ের আগে অবজেক্টগুলি সংরক্ষণ করা তারপর আপনার জেডব্লিউটি-তে আইডি দ্বারা উল্লেখ করা
সেভ করার পর অবজেক্ট আপডেট করা হচ্ছে
প্রস্তাবিত ঘূর্ণায়মান বারকোড ক্ষেত্রটি এই সমস্ত প্রবাহের সাথে সামঞ্জস্যপূর্ণ, তবে, নিরাপত্তা উন্নত করার জন্য, আমরা নিম্নলিখিতগুলি সুপারিশ করি:
object:insert এবং আপনার JWT-তে আইডি দ্বারা নির্দিষ্ট বস্তুর উল্লেখ করার জন্য Google Wallet-এ অ্যাড বোতামটি কনফিগার করুন। এটি নিশ্চিত করে যে ফলস্বরূপ জেডব্লিউটি ঘূর্ণায়মান বারকোডের গোপন কী অন্তর্ভুক্ত করে না।
একটি OTP গোপন কী ব্যবহার করুন যা একটি একক পাসের জন্য ব্যাপ্ত
কী, এটি আপডেট না হওয়া পর্যন্ত, পাসের জীবনকালের জন্য বৈধ বলে আশা করা হচ্ছে। আমরা আশা করি না যে এই কীটি স্বাভাবিক অপারেশন চলাকালীন কোনো ফ্রিকোয়েন্সিতে আপডেট করা হবে।
নিম্নলিখিত ক্রম চিত্রটি একটি সাধারণ একীকরণের জন্য বিভিন্ন অভিনেতার মধ্যে প্রবাহকে চিত্রিত করে:
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eRotating barcodes enhance security by changing periodically, mitigating risks associated with ticket theft or unauthorized resale.\u003c/p\u003e\n"],["\u003cp\u003eThey serve as a fallback for devices lacking NFC capabilities, ensuring accessibility for all users.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Wallet prioritizes redemption methods with Smart Tap first, followed by rotating barcodes, and lastly static barcodes.\u003c/p\u003e\n"],["\u003cp\u003eFor optimal security, it's recommended to use the \u003ccode\u003eobject:insert\u003c/code\u003e API to store pass data and reference it by ID in JWTs, avoiding exposure of the rotating barcode's secret key.\u003c/p\u003e\n"],["\u003cp\u003eEach pass should ideally have a unique OTP secret key, remaining valid throughout the pass's lifespan.\u003c/p\u003e\n"]]],["Rotating barcodes change periodically (e.g., every minute) and are accepted only when current by the reader, improving security against screenshotting and ticket theft. They serve as a fallback for devices lacking NFC for Smart Tap. The `RotatingBarcode` type utilizes a TOTP algorithm with parameters like `algorithm`, `periodMillis`, and `key`. The system prioritizes redemption methods: Smart Tap, then rotating barcode, and lastly, static barcode. For optimal security, passes should be pre-inserted via the `object:insert` API.\n"],null,["# Rotating Barcodes\n\nIntroduction\n------------\n\n\nRotating barcodes look just like regular barcodes but change periodically,\ntypically every minute, and the terminal/reader is programmed to only accept\nthe most recent one. This security measure reduces the risks associated with\nbarcode screenshotting, in particular ticket theft or unauthorized ticket\nresale. Rotating barcodes can also act as a fallback for devices that can't\ntake advantage of Smart Tap, due to not supporting NFC (lack of hardware, or\nsoftware disabled).\n\n### API reference\n\n\nFor technical details about Rotating Barcodes, see the\n[`RotatingBarcode` type](/wallet/retail/gift-cards/rest/v1/RotatingBarcode).\n\n### Example payload\n\n| JSON ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"rotatingBarcode\": { \"type\": \"QR_CODE\", \"valuePattern\": \"MyRotatingBarcode-{totp_timestamp_seconds}-{totp_value_0}\", \"alternateText\": \"Ticket#: 1234567890\", \"totpDetails\": { \"algorithm\": \"TOTP_SHA1\", \"periodMillis\": \"3000\", \"parameters\": [ { \"key\": \"3132333435363738393031323334353637383930\", \"valueLength\": \"8\" } ] } } } ``` |\n\nFallback Mechanisms\n-------------------\n\n\nOn the user device, only one redemption mechanism is used at a given time,\ndepending on how the pass is configured and on the capabilities of the device.\nIn the order of priority, the following redemption types are used:\n\n1. Smart Tap: If a smart-tap payload is specified and if the device supports NFC/HCE\n - Note, this can be overridden by the user by clicking \"Show code,\" which will force the display of the rotating barcode/static barcode.\n2. Rotating barcode: If a rotating barcode payload is specified\n3. Static barcode: If a barcode payload is specified\n\n\nSpecifying multiple redemption payloads can ensure all users are supported but\nmay have security implications. In particular, using a static barcode as a\nfallback for a rotating barcode negates most of the security benefits of using\nrotating barcodes. A static barcode fallback will only be shown in web views\nor on clients that do not support rotating barcodes. As of today, we expect\nall Google Wallet clients to support rotating barcodes.\n\nSave Flow\n---------\n\nThe Google Wallet API offers several flows, including:\n\n- Creating the gift card classes at save time, or ahead of time\n- Sending the complete objects in your JWT, or saving the objects ahead of time then referencing them by ID in your JWT\n- Updating the objects after they have been saved\n\n\nThe proposed rotatingBarcode field is compatible with all these flows,\nhowever, in order to improve security, we suggest the following:\n\n- Call the `object:insert` API to insert the pass to the Google Wallet server and configure the Add to Google Wallet button to reference the specific object by ID in your JWT. This ensures that the resulting JWT does not include the secret key of the rotating barcode.\n- Use an OTP secret key that is scoped to a single pass\n- The key, unless it is updated, is expected to be valid for the lifespan of the pass. We do not expect this key to be updated on any frequency during the course of normal operation.\n\n\nThe following sequence diagram illustrates the flow between the various actors\nfor a typical integration:"]]