AI-generated Key Takeaways
-
After associating accounts, the new instrument enables purchases initiated by either the user or the system.
-
The purchase process involves communication between the user/Google system, Google servers, and the Payment Integrator server to capture funds.
-
User-initiated purchases involve the user interacting with the Google UI, while system-initiated purchases happen in the background without user interaction.
-
Both purchase flows utilize a
Capture
command containing the Google Payment Token (GPT) and purchase amount for secure transaction processing. -
Upon successful payment processing, the Payment Integrator Server confirms success, ultimately leading to item delivery or service activation.
Overview
Once the accounts have been associated together, the newly created instrument can be used for purchases. Purchases within Google occur in one or two modes:
- User-initiated
- System-initiated
Regardless of the mode chosen, in the typical case, the Integrator UI will not be involved in purchases.
How the flow works
The diagram below shows a user-initiated purchase.
Purchase flow-User present
The objects in the diagram include the following:
- User: This is the person who wants to purchase something through Google.
- Google UI: The interface, where the customer begins to make a purchase.
- Google Server: The backend server at Google that sends the capture command to the Payment Integrator Server.
- Payment Integrator Server: The backend server of the integrator that accepts the request for a funds capture.
In this purchase flow, the user is in session. They begin the flow by starting to purchase an item.
- The User begins to purchase an item through the Google UI.
- The purchase information is sent to the Google Server.
- Google’s Server sends the
Capture
request (GPT
,amount
) to the Payment Integrator Server. - The Payment Integrator Server sends back a Success response to the Google Server.
- The Google Server sends back a Success response to the Google UI.
- The items are delivered to the customer.
A system-initiated flow is shown below. In this case Google’s system has initiated the payment on the user's behalf. This can happen for a variety of reasons (for example, a monthly subscription).
In this situation the user is not in session.
Purchase flow-User not present
The objects in the diagram are as follows:
- Google Server: The backend server at Google that initiates the purchase.
- Payment Integrator Server: The backend server of the integrator that accepts the request for a funds capture.
In this purchase flow, the user is not present. The Google Server initiates the purchase.
- The Google Server triggers a purchase flow with the user not in session.
- The Google Server sends a
Capture
command, including theGPT
and theamount
of purchase. - The Payment Integrator Server replies with a message of Success.