Accept recurring payments with Google Pay

Subscription payment is a recurring automatic payment solution that enables merchants to collect payments periodically. With a one-time authorization, buyers can link their payment accounts to enjoy continuous subscription services, while supporting dynamic adjustments to subscription configurations (such as modifying cycle/amount, canceling renewal, or terminating services, etc.). The entire process is both efficient and secure.
This document provides integration instructions for the Google Pay payment method. Through the Google Pay service, buyers can make payments using the credit or debit cards stored in their Google Pay accounts. When using the Native API method, the merchant frontend needs to directly integrate the Google Pay SDK. After obtaining the card asset information, call Antom’s pay (One-time Payments) API to initiate payment. For details on integrating the Google Pay SDK, refer to Google Pay for Payments (Web) or Google Pay for Payments (Android).

User experience

The following figures demonstrate the user experience of paying with Google Pay:
Web
Mobile

Payment flow

You can choose one of the following two decryption methods to decrypt the obtained paymentToken, and the corresponding payment processes differ.
  • Hosted decryption: Antom manages certificates and performs decryption on your behalf, so you do not need to be PCI-qualified.
  • Merchant decryption: You manage your own certificates and perform decryption operations yourself, and this mode requires that you are PCI-qualified.
Note: For more information about PCI DSS compliance requirements, see PCI DSS standard.
The following illustrates the payment flow of accepting recurring payments with Google Pay:
Hosted decryption
Merchant decryption

(Optional) Step 3: Redirect to the 3DS authentication page
Client-side

Once the merchant server obtains the normalUrl returned by Antom, it should pass normalUrl to the frontend, which will then redirect the buyer to the 3DS authentication page. For details, see Step 3: Redirect to the 3DS authentication page (normalUrl).
Note: In the Google Pay scenario, when Antom hosts decryption of paymentToken or you decrypt paymentToken yourself and the received information is FPAN, the returned normalUrl is the 3DS authentication page.

Step 4: Obtain the authorization result
Server-side

Whether the authorization is successful or fails, Antom will send the payment result to you via the notifyPayment API. For details, please refer to Step 4: Obtain the authorization result

Step 5: Capture and recieve the capture notification
Server-side

Note:
  • Only successful authorized payments will trigger capture.
  • Shipping desicion should be based on the capture result.
After successful authorization, Antom will automatically initiate capture for you, or you can choose to initiate capture manually. Meanwhile, Antom will send the capture result notification to you via the notifyCapture (One-time Payments) API, or you can proactively query to obtain the capture result. Shipping of goods should be based on the capture result. For detailed steps, refer to Capture.

Step 6: Recieve subscription notifications
Server-side

After the subscription takes effect, Antom will send the following notifications:
For more details, refer to Step 6: Receive subscription notifications.

After subscription

After completing the subscription, you can perform the following actions:

Inquire subscription information
Server-side

After your subscription is confirmed, you can query the following subscription information:

Subscription trial
Server-side

Antom provides a subscription trial feature that allows buyers to experience a product or service for a limited time at no cost or at a discounted rate before officially purchasing a subscription plan. For more details, please refer to the Subscription trial.

Subscription cancellation
Server-side

The subscription cancellation feature allows buyers to cancel their current subscription at any time when they no longer need to use the associated service. For more details, please refer to the Subscription cancellation.

Cancellation
Server-side

For successful payments, if the buyer requests cancellation or a refund on the same day, you can use Antom’s cancellation capability to cancel the order or release funds. Orders not yet completed can also be cancelled directly. For details, refer to Cancel.

Refund
Server-side

To learn about Antom refund rules and how to initiate a refund for a successful transaction, see Refund for more information.

Reconciliation
Server-side

After the transaction is completed, use the financial reports provided by Antom for reconciliation. For more information on how to reconcile and the settlement rules of Antom, refer to Reconciliation.