设置
Google Pay API 使得在线购物变得简便快捷。设置 API 后,买家无需在您的网站上手动输入其付款信息。他们的付款信息,如姓名、电子邮件地址、帐单邮寄地址和送货地址等,都已预先输入到向买家显示的付款选择对话框中。买家选择付款方式时,API 会通过受支持的付款网关返回付款信息,或直接在加密的安全服务器上处理交易。
与 Google Pay API 集成后,您可以为使用保存在其 Google 帐号中的信用卡或借记卡付款的数以亿计的 Google 用户提供一键式结算体验。
准备工作
在开始实现 API 之前,请确保您已满足以下前提条件:
申请正式版访问权限
在您的 Google Pay API 实现投入生产环境之前,您必须先向 Google 注册,接受我们的服务条款,并在您的网站通过 Google 审核后接收 Google 商家 ID。如需了解详情,请参阅集成核对清单。
在申请正式版访问权之前,您需要满足以下条件:
在您的网站获得批准后,您会收到必须包含在每个 Google Pay API 请求中的 Google 商家 ID。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-16。
[null,null,["最后更新时间 (UTC):2024-10-16。"],[[["The Google Pay API enables a quick and seamless online checkout experience by allowing customers to use pre-filled payment information from their Google accounts."],["Integrating the Google Pay API gives you access to a vast user base of millions who already have payment methods stored with Google."],["Before implementing the API, ensure your website uses HTTPS, is accessed through a supported browser, and that you have a Google account with an added payment method, while also adhering to the Google Pay API Acceptable Use Policy."]]],["The Google Pay API allows users to make online purchases without manually entering payment details. It displays a pre-filled payment dialog with information like name, email, and addresses, which is then processed through a payment gateway or directly on the secure server. Integration offers one-touch checkout to Google users with saved payment methods. To implement, you need an HTTPS site, a supported browser, a Google Pay payment method, and adherence to the API's policy. Publishing requires checking additional information.\n"]]