概览
借助 Google Pay API,用户可以便捷地在您的网站上结帐,您也可以轻松访问全球 Google 帐号中保存的数以亿计的卡。
工作原理
图 1. 网页付款流程
当用户点击 Google Pay 付款按钮时,他们会看到一张付款表格,其中显示了保存到其 Google 帐号的付款方式以及送货地址字段等可选字段。用户可以快速选择付款方式、添加可选的送货地址或添加新信息。
付款流程如下:
- 用户点击 Google Pay 付款按钮,即会看到包含受支持的付款方式列表的付款表格。
- 用户选择一种付款方式,Google Pay 会安全地将适用于该方式的付款令牌返回到您的网站。
- 您的网站向其后端提交此付款令牌以及购买详情。
- 为了执行付款,后端需要处理购买交易并将付款令牌发送给付款服务提供商。
开始使用
要开始使用 Google Pay API,请执行以下步骤:
- 请查看并遵守我们的 Google Pay API 服务条款和使用限制政策。
-
查看支持的处理方和网关列表,找到付款处理方或网关参考文档。
- 请查看并遵守 Google Pay 品牌推广指南。
- 学习教程并完成集成核对清单。
- 通过 Google Pay 商家控制台申请对 Google Pay API 的正式版访问权。
资源
使用以下资源完成集成操作:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-06-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]