[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-10-16 (世界標準時間)。"],[[["\u003cp\u003eGoogle Pay enables quick and easy checkout on websites by leveraging millions of cards saved to Google Accounts globally.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Pay API securely returns a payment token to your website after a user selects a payment method, streamlining the transaction process.\u003c/p\u003e\n"],["\u003cp\u003eIntegrating Google Pay involves reviewing terms, selecting a supported processor, adhering to brand guidelines, and completing the provided tutorial and checklist.\u003c/p\u003e\n"],["\u003cp\u003eBusinesses can access resources such as live demos, sample tokens for testing, and a troubleshooting guide to support their integration process.\u003c/p\u003e\n"],["\u003cp\u003eProduction access to the Google Pay API is requested through the Google Pay & Wallet Console after successful integration and testing.\u003c/p\u003e\n"]]],["Users click a Google Pay button, which displays saved payment methods. After selection, Google Pay returns a payment token to the website. The website sends the token and purchase details to its backend. The backend then processes the payment, forwarding the token to the payment service provider. To start, review terms, find your processor, adhere to brand guidelines, and request production access through the Google Pay & Wallet Console. Additional steps are included for those with many domains.\n"],null,["The Google Pay API enables fast checkout on your website, and gives you convenient access\nto hundreds of millions of cards saved to Google Accounts worldwide.\n\nSee a full working example in Firebase Studio:\n[](https://goo.gle/3ZxzzGs)\n\nHow it works **Figure 1.** Web payment flow\n\nWhen a user clicks the Google Pay payment button, they see a payment sheet that displays the\npayment methods saved to their Google Account, as well as optional fields such as a shipping\naddress field. Users can quickly select a payment method, add an optional shipping address, or add\nnew information.\n\nThe payment flow is as follows:\n\n1. The user clicks the Google Pay payment button and sees a payment sheet with a list of supported payment methods.\n2. The user selects a payment method and Google Pay securely returns a payment token for that method to your website.\n3. Your website submits the payment token, along with details about the purchase, to its backend.\n4. To execute the payment, the backend processes the purchase and sends the payment token to the payment service provider.\n\nGet started\n\nPerform the following steps to get started with the Google Pay API:\n\n1. Review and adhere to our Google Pay API [Terms of Service](https://payments.developers.google.com/terms/sellertos) and [Acceptable Use Policy](https://payments.developers.google.com/terms/aup).\n2. Look through the [supported processors and\n gateways list](/pay/api#participating-processors) to find the reference documentation for your payment processor or\n gateway.\n\n | **Note:** If your processor or gateway isn't supported, you might be able to complete a Direct integration. The direct integration is exclusively available to merchants who are Payments Card Industry Data Security Standard (PCI DSS) compliant, as validated by a Qualified Security Assessor. Third parties that supply gateway or processing services on behalf of actual merchants aren't eligible to use the Direct integration.\n3. Review and adhere to the Google Pay [Brand guidelines](/pay/api/web/guides/brand-guidelines).\n4. Complete the [Tutorial](/pay/api/web/guides/tutorial) and [Integration checklist](/pay/api/web/guides/test-and-deploy/integration-checklist).\n5.\n [Request production access](/pay/api/web/guides/test-and-deploy/request-prod-access)\n to the Google Pay API through the [Google Pay \\& Wallet Console](https://pay.google.com/business/console?utm_source=devsite&utm_medium=devsite&utm_campaign=devsite).\n\n | **Note:** If you intend to submit more than 50 fully qualified domains (including subdomains), please get in touch beforehand using our contact support [form](https://docs.google.com/forms/d/e/1FAIpQLSdnBbqNqM-O6EWOunplX3Mkd6fQJCDUWeRirtfHL8pDqzJyBQ/viewform) for a possible alternative solution.\n\nResources\n\nUse the following resources to complete your integration:\n\n- Reference our [Live Google Pay demos](/pay/api/web/guides/resources/demos).\n- Reference how to [Test with sample tokens](/pay/api/web/guides/resources/sample-tokens).\n- Reference our [Troubleshooting guide](/pay/api/web/support/troubleshooting) if you encounter errors.\n\nCodelabs\n\nThe following codelabs will help you get started on Web with the Google Pay API:\n\n- [Google Pay for Web 101: Basic](https://codelabs.developers.google.com/codelabs/gpay-web-101)\n- [Google Pay for Web 201: Advanced](https://codelabs.developers.google.com/codelabs/gpay-web-201)\n\nVideos\n\nBlog posts"]]