账号受限卡券
什么是账号受限卡券?
一项新功能,使开发者能够将一些卡券对象与 Google 帐号相关联,从而限制谁可以保存卡券。
该如何使用?
您需要使用 Google Wallet API 在卡券对象上设置用户的电子邮件地址。当用户尝试将该卡券保存到 Google 钱包时,我们会验证在卡券对象上设置的帐号是否与保存该卡券的 Google 钱包用户的 Google 帐号一致。
听起来不错!如何获得此功能?
我们正在一小部分开发者中测试该功能。如果您有兴趣,请在 Google Pay 与钱包控制台中与支持团队联系,并在主题“Google Wallet API 集成”,子主题:“其他”下提交支持请求,并在问题说明中添加“帐号受限卡券访问请求”。我们会在您可以使用该功能时通知您。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-05。
[null,null,["最后更新时间 (UTC):2024-09-05。"],[[["Account Restricted Passes are a new feature allowing developers to link passes to specific Google accounts, controlling who can save them."],["This feature works by matching the user's email address on the pass object with the Google Account attempting to save it to Google Wallet."],["Access to this feature is currently limited and requires contacting Google support through the Google Pay & Wallet Console to request access."]]],["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"]]