С помощью Google Pay API вы сможете быстро принимать в своем приложении оплату от миллионов пользователей, которые сохранили данные банковских карт в своих аккаунтах Google.
Принципы работы
Рисунок 1. Процесс оплаты на устройстве Android
Нажав на кнопку Google Pay, пользователь переходит на страницу, где указаны способы оплаты и адреса доставки, сохраненные в его аккаунте Google. Здесь он может быстро выбрать способ оплаты, указать адрес доставки, если требуется, и добавить новую информацию.
Вот как происходит процесс оплаты:
Нажав кнопку Google Pay, пользователь переходит на страницу со списком доступных способов оплаты и выбирает нужный.
Google Pay безопасно передает токен, соответствующий указанному способу оплаты, в ваше приложение.
Приложение отправляет своей внутренней системе токен и другие детали платежа.
Система обрабатывает данные и передает токен поставщику платежных услуг.
Начало работы
Чтобы приступить к работе с Google Pay API, выполните следующие действия:
[null,null,["Последнее обновление: 2024-10-16 UTC."],[[["The Google Pay API allows for quick and easy checkout within your Android app, providing access to millions of cards saved to Google Accounts globally."],["The 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."],["To 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."],["Before launching, ensure your integration is production-ready by reviewing the checklist and requesting production access through the Google Pay & Wallet Console."]]],["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"]]