Card payments
This article introduces the integration process of card payment methods.
Prerequisites
Before you begin, you must complete the following tasks:
- Register in Antom Dashboard.
- Set your keys.
Payment flow
The card payment follows the auth-capture mode, which means the card payment is completed in two steps: Authorization and Capture. When a user pays with a card, you must request the card payment to be authorized to freeze a certain amount of funds and then request to capture the funds. After the capture succeeds, the funds are transferred to your account. By default, APO automatically handles funds capture for you. You can also choose to capture funds manually by calling the capture API.
The overall process of card payment is shown in the following figure:

Figure 1. Payment authorization and capture process

Figure 2. The process of canceling authorized payments
Notes: Acquirer's routing is divided into the following two cases:
- Intelligent Routing: APO enables intelligent routing for you by default to prioritize the payment success rate, based on big data and AI algorithms to intelligently decide the optimal acquirer for each transaction to achieve a higher payment success rate. You can also choose to disable the intelligent routing capability.
- Custom Routing: You can customize the routing rules in APO. The transactions that meet the rules will be routed to the target acquirer according to the rules. Custom routing has a higher priority than intelligent routing. If you do not turn off intelligent routing, transactions that do not meet the custom routing rules will be routed by intelligent routing to help you decide the best acquirer.
For more information on how to customize your routing rules, you can contact Antom technical support.
Integration Steps
Complete the following integration steps for a card payment:
- (Optional) Independent card binding.
- Display available payment methods.
- Request to authorize the payment.
- (Optional) Cancel the authorization payment.
- Request to capture the payment.