Google Pay API는 앱 내에서 빠르고 간편한 결제를 지원하므로 전 세계 Google 계정에 저장된 수억 장의 카드에 간편하게 액세스할 수 있습니다.
작동 방식
그림 1. Android 결제 과정
사용자가 Google Pay 결제 버튼을 탭하면 Google 계정에 저장된 결제 수단과 배송지 주소와 같은 선택사항 필드가 표시되는 결제 명세서를 볼 수 있습니다. 사용자는 결제 수단을 빠르게 선택하거나 배송지 주소(선택사항)를 추가하거나 새 정보를 추가할 수 있습니다.
결제 과정은 다음과 같습니다.
사용자가 Google Pay 결제 버튼을 클릭하면 지원되는 결제 수단 목록이 포함된 결제 명세서가 표시됩니다.
사용자가 결제 수단을 선택하면 Google Pay에서 해당 메서드의 결제 토큰을 앱에 안전하게 반환합니다.
앱에서 구매에 대한 세부정보와 함께 결제 토큰을 백엔드에 제출합니다.
결제를 실행하기 위해 백엔드는 구매를 처리하고 결제 토큰을 결제 서비스 제공업체에 보냅니다.
[null,null,["최종 업데이트: 2024-10-16(UTC)"],[[["\u003cp\u003eThe Google Pay API allows for quick and easy checkout within your Android app, providing access to millions of cards saved to Google Accounts globally.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Pay payment flow involves the user selecting a payment method, your app receiving a payment token, and your backend processing the purchase with the payment provider.\u003c/p\u003e\n"],["\u003cp\u003eTo get started, review the Google Pay API terms, find your payment processor in the supported list, follow the brand guidelines, and complete the Android integration using the provided resources or libraries for Flutter and React Native.\u003c/p\u003e\n"],["\u003cp\u003eBefore launching, ensure your integration is production-ready by reviewing the checklist and requesting production access through the Google Pay & Wallet Console.\u003c/p\u003e\n"]]],["Users initiate payment by tapping the Google Pay button, revealing a payment sheet with saved methods. They select a method, and Google Pay securely returns a payment token to the app. The app then sends this token and purchase details to its backend. The backend processes the purchase and forwards the token to the payment service provider to complete the transaction. To get started with the API, you should review the Google Pay terms of services and acceptable use policy, check the supported payment processors, adhere to brand guidelines and complete an integration using the documentation.\n"],null,["# Overview\n\n**Figure 1.** Android payment flow\n\nThe Google Pay API enables fast checkout within your app, and gives you convenient access\nto hundreds of millions of cards saved to Google Accounts worldwide.\n\nHow it works\n------------\n\nWhen a user taps 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\nadd new information.\n\nThe payment flow is as follows:\n\n1. The user taps 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 app.\n3. Your app 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-----------\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/android/guides/brand-guidelines).\n4. Complete a vanilla Android integration using the [tutorial](/pay/api/android/guides/tutorial) in the documentation, or check out the libraries to add Google Pay to your [Flutter](https://pub.dev/packages/pay) or [React Native](https://www.npmjs.com/package/@google/react-native-make-payment) application.\n5. Review the [integration checklist](/pay/api/android/guides/test-and-deploy/integration-checklist) to assess production readiness for your integration.\n6. [Request production\n access](/pay/api/android/guides/test-and-deploy/request-prod-access) to the Google Pay API using the [Google Pay \\& Wallet Console](https://pay.google.com/business/console?utm_source=devsite&utm_medium=devsite&utm_campaign=devsite). **Note:** If you intend to submit more than 10 Android packages, get in touch beforehand using our contact support [form](https://docs.google.com/forms/d/e/1FAIpQLSdnBbqNqM-O6EWOunplX3Mkd6fQJCDUWeRirtfHL8pDqzJyBQ/viewform) so we can learn more about your intended integration.\n7. Ensure that your Android device has the latest available version of Google Play services installed.\n\nResources\n---------\n\nUse the following resources to complete your integration:\n\n- Reference how to [Test with sample tokens](/pay/api/android/guides/resources/sample-tokens).\n- Reference our [Troubleshooting guide](/pay/api/android/support/troubleshooting) if you encounter errors.\n\n### Codelabs\n\nThe following codelabs will help you get started on Web with the Google Pay API:\n\n- [Build a Fast Checkout Experience on Android with Google Pay](https://codelabs.developers.google.com/pay-android-checkout)\n\n### Videos\n\n### Blog posts"]]