设置
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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。"],[[["\u003cp\u003eThe Google Pay API enables a quick and seamless online checkout experience by allowing customers to use pre-filled payment information from their Google accounts.\u003c/p\u003e\n"],["\u003cp\u003eIntegrating the Google Pay API gives you access to a vast user base of millions who already have payment methods stored with Google.\u003c/p\u003e\n"],["\u003cp\u003eBefore 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.\u003c/p\u003e\n"]]],["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"],null,["# Setup\n\nThe Google Pay API facilitates fast and easy online purchases. With the API set up, shoppers\ndon't have to manually enter their payment information on your site. Instead, their payment\ninformation, such as their name, email, billing and shipping addresses, are already\npre-entered in a payments selection dialog that's displayed to the shopper. When the shopper\nselects their payment type, the API returns the payment information through a supported payments\ngateway, or it's directly processed on your encrypted secure server.\n\nWhen you integrate with the Google Pay API, you offer a one-touch checkout experience to hundreds\nof millions of Google users who have their credit or debit card payment information saved in\ntheir Google accounts.\n\nBefore you begin\n----------------\n\nBefore you begin to implement the API, make sure you've met the following\nprerequisites:\n\n- Serve an HTTPS webpage with a TLS domain-validated certificate.\n- Use one of the following supported web browsers: Google Chrome, Mozilla Firefox, Apple Safari, Microsoft Edge, Opera, or UCWeb UC Browser.\n- [Add a payment method to your Google Account](https://support.google.com/pay/answer/7625139).\n- Adhere to our [Google Pay API Acceptable Use Policy](https://payments.developers.google.com/terms/aup).\n\nWhen you're ready to go live, refer to [Publish your integration](/pay/api/web/guides/test-and-deploy/publish-your-integration) for important information."]]