A API Google Pay permite uma confirmação de compra rápida e simples no seu aplicativo e proporciona acesso conveniente
a milhões de cartões salvos em Contas do Google no mundo todo.
Como funciona
Figura 1. Fluxo de pagamento para Android
Quando um usuário toca no botão de pagamento do Google Pay, ele vê uma página de pagamento que exibe
as formas de pagamento salvas na Conta do Google, além de campos opcionais, como endereço de
entrega. Os usuários podem selecionar rapidamente uma forma de pagamento, adicionar um endereço de entrega opcional ou
adicionar novas informações.
O fluxo de pagamento ocorre da seguinte maneira:
O usuário toca no botão de pagamento do Google Pay e vê uma página de pagamento com uma lista de formas de pagamento
compatíveis.
O usuário seleciona uma forma de pagamento e, com segurança, o Google Pay retorna com um token de pagamento dessa
forma para seu app.
Seu app envia o token de pagamento e os detalhes da compra para o back-end.
Para executar o pagamento, o back-end processa a compra e envia o token de pagamento ao
provedor de serviços de pagamento.
Primeiros passos
Siga estas instruções para começar a usar a API Google Pay:
[null,null,["Última atualização 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"]]