账号受限卡券
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
什么是账号受限卡券?
一项新功能,使开发者能够将一些卡券对象与 Google 帐号相关联,从而限制谁可以保存卡券。
该如何使用?
您需要使用 Google Wallet API 在卡券对象上设置用户的电子邮件地址。当用户尝试将该卡券保存到 Google 钱包时,我们会验证在卡券对象上设置的帐号是否与保存该卡券的 Google 钱包用户的 Google 帐号一致。
听起来不错!如何获得此功能?
我们正在一小部分开发者中测试该功能。如果您有兴趣,请在 Google Pay 与钱包控制台中与支持团队联系,并在主题“Google Wallet API 集成”,子主题:“其他”下提交支持请求,并在问题说明中添加“帐号受限卡券访问请求”。我们会在您可以使用该功能时通知您。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003eAccount Restricted Passes are a new feature that links specific passes to Google accounts, controlling who can save them.\u003c/p\u003e\n"],["\u003cp\u003eThis feature works by verifying if the Google account linked to the pass matches the user's Google Wallet account when they try to save it.\u003c/p\u003e\n"],["\u003cp\u003eCurrently, this feature is in limited testing, and interested developers can request access via the Google Pay & Wallet Console support.\u003c/p\u003e\n"]]],["Developers can use Account Restricted Passes to link pass objects to specific Google accounts, limiting who can save them. This is done by setting the user's email on the pass object via the Google Wallet API. When a user attempts to save the pass, the system verifies that the pass's email matches the user's Google account. To gain access to this feature, developers must contact support through the Google Pay & Wallet Console, using the specified topic and subtopic, and requesting \"Account Restricted Passes Access.\"\n"],null,["# Account Restricted Passes\n\n#### What are Account Restricted Passes?\n\n\nA new feature that lets developers associate some pass objects with Google accounts which limits\nwho can save the pass.\n\n#### How does it work?\n\n\nYou set the user's email address on the pass object using the Google Wallet API. When the user\nattempts to save that pass to Google Wallet, we validate that the account set on the pass object\nmatches the Google Account of the Google Wallet user saving the pass.\n\n#### That sounds great! How do I get access to this feature?\n\n\nWe're testing the feature with a small number of developers. If you are interested,\n[contact support](https://support.google.com/google-pay-and-wallet-console/answer/10913634?zippy=%2Cbusiness-profile)\nin the [Google Pay \\& Wallet Console](https://goo.gle/wallet-console) and\nfile a support case under Topic: \"Google Wallet API Integration\", Subtopic: \"Other\"\nand include in the issue description: \"Account Restricted Passes Access Request\".\nWe'll let you know when you can access it."]]