Payment Element recurring payments

Subscription Payment is a payment solution that supports periodic automatic deductions, helping you easily achieve automated recurring revenue collection. Buyers only need to complete a one-time authorization and binding to continuously enjoy subscription services, while also supporting flexible adjustments to subscription configurations (such as modifying cycles/amounts, canceling renewals, or terminating services). The entire process is secure, reliable, and user-friendly, balancing efficiency with transaction security.
Antom Payment Element is a payment component integrated via SDK, designed to provide a seamless payment experience and help increase conversion rates. For different client types, Antom offers the following solutions:
  • Web/WAP: Web Element for browser and mobile web environments
  • App (Android & iOS): Mobile Element designed for merchants' native mobile applications
The capabilities supported by Payment Element on each platform are shown in the table below:
Web/WAP
iOS
Android
After the subscription takes effect, Antom will send you the following notifications:

First-time subscription notification

Antom will send the following event notifications via HTTPS to the webhook configured in the API or Antom Dashboard:
Subscription status notification
Current deduction result notification
Common questions
Q: Will the asynchronous notification be re-sent?
A: Yes, the asynchronous notification will be re-sent automatically within 24 hours for the following cases:
  • If you didn't receive the asynchronous notification due to network reasons.
  • If you receive an asynchronous notification from Antom, but you did not respond to the notification in the Sample code format.
The notification can be resent up to 8 times or until a correct response is received to terminate delivery. The sending intervals are as follows: 0 minutes, 2 minutes, 10 minutes, 10 minutes, 1 hour, 2 hours, 6 hours, and 15 hours.

Q: Do I need to verify the signature after receiving the payment result notification?
A: Yes. To ensure that the callback request is indeed sent by Antom, verification is required during signature verification. When assembling messages to be verified, you are required to process in the following standard order:
<http-method> <http-uri> <client-id>.<request-time>.<request-body>
. Note that
<request-body>
should be assembled directly from the original value, rather than parsed into JSON and then assembled.

Q: If the first payment fails, will the subscription take effect?
A: When the first deduction during subscription activation fails, the subscription will not take effect. Antom will push a webhook notification with subscriptionStatus=
TERMINATED
to you, indicating that the subscription activation has failed.
Q: What is the subscription timeout period?
For APM payment types, the default timeout period is 30 minutes. For card payment types, the default timeout period is 7 days.

Subscription renewal notification

After the subscription is successfully created and has taken effect, the Antom system will automatically initiate renewal deductions based on the subscription rules you have configured, and send the corresponding payment result notifications through webhook to achieve periodic deductions. The timing and rules for triggering renewal deductions are as follows:
  • Trigger timing: The renewal deduction will be automatically triggered 24 hours before the start date of the next subscription cycle. You can determine the initiation time of the next cycle’s payment by subtracting 24 hours from the periodEndTime parameter in the previous cycle’s payment result notification.
  • Cycle rule: The renewal period and deduction frequency will follow the periodRule defined during subscription creation, for example, daily, monthly, quarterly, or yearly billing. The explanation is as follows:
Card payments, Apple Pay, Google Pay
APM payments
Common questions
Q: If a payment deduction fails, will it cause the subscription to become invalid?
A: If the first deduction when creating a subscription fails, the subscription will not take effect. However, if the subscription has already taken effect and subsequent cycle deductions fail (for example, due to insufficient balance), the subscription will remain valid. If the subscription is not actively canceled, Antom will retry the deduction in the next billing cycle.

Q: Will a payment failure trigger a deduction notification, and will it be retried?
A: A deduction failure notification will be sent when the deduction fails. In card subscription payment scenarios, Antom will not initiate a retry. If you need to initiate a retry, please contact Antom technical support to confirm the solution.

Q: If the first deduction occurs on dates such as February 28, March 31, or April 30 (the end of the month), how is the next deduction date determined?
A: The subscription cycle logic is based on the selected date. If the next cycle does not have that same date, the deduction will occur one day earlier. For example:
  • First cycle: 1.28, Second cycle: 2.28, Third cycle: 3.28, Fourth cycle: 4.28.
  • First cycle: 1.31, Second cycle: 2.28, Third cycle: 3.31, Fourth cycle: 4.30.
  • First cycle: 1.30, Second cycle: 2.28, Third cycle: 3.30, Fourth cycle: 4.30.

Q: How are subsequent recurring deductions associated with the initial subscription contract?
A: For recurring deduction notifications, the association can be made using the subscriptionRequestId or subscriptionId included in the notification request to link back to the initial contract. For recurring deductions in card payment scenarios, Antom will additionally send authorization result notifications and capture result notifications. These two notifications can be linked to the recurring deduction notification through paymentId, and ultimately associated with the initial contract’s subscriptionId.

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, refer to 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, refer to 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

For successfully paid orders, if you need to issue a refund to the buyer, Antom provides two methods:
  • Your operations staff can manually process refunds directly through Antom Dashboard.
  • Call the refund API to initiate a refund.
Antom’s refund capabilities are as follows:
  • Supports full refunds.
  • Supports multiple partial refunds, with the total refunded amount not exceeding the captured amount.
Refer to Refund to learn about Antom refund rules and operation process.

Dispute
Server-side

Antom provides dispute resolution services for contested transactions. For more information, refer to Dispute Guidance.

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, please refer to Reconciliation.

Payment method features

This section explains differences in supported features across payment methods.

Default timeout

The default order closing time varies for different payment methods. For specific information, refer to Payment method default timeout.
Note: Since Payment Element orders have a default validity period of 1 hour, the actual timeout period is extended by 1 hour beyond the payment method’s default timeout. For example, if a payment method’s default timeout is 14 minutes, the actual timeout period for a Payment Element order will be 1 hour and 14 minutes.

Integration key points

Refer to Integration key considerations to learn about the integration key points and recommended solutions for different payment methods.

Card payment features

Payment Element supports the following card payment features. Click to get detailed information and usage instructions:

Additional content

Antom also offers the following customization options:
  • Appearance customization: Antom provides extensive styling options, including theme, layout, and CSS customization.
  • Google Pay: Buyers can pay using credit or debit cards stored in their Google account. With Payment Element, no additional Google Pay SDK integration is needed—it loads Google Pay automatically.
  • Apple Pay: Buyers can pay using credit or debit cards stored in their Apple account. With Payment Element, no additional Apple Pay SDK integration is needed—it loads Apple Pay automatically.

Specify a payment method

You can pass the parameters in the createPaymentSession (One-time Payments) API to specify the display of payment methods on Payment Element, the order of the payment method list, and the display of quick payments. This feature offers you the following benefits:
  • Filter local payment methods based on your business region.
  • Sort your preferred payment methods.
  • Display the mainstream quick payments, such as Alipay, Apple Pay, and Google Pay.
For specific steps, refer to Specify a payment method.

Payment methods requiring embedding

The following payment methods require you to embed the payment details collection component: