Antom, leading provider of tailored payment solutionsAntom, leading provider of tailored payment solutions

Server-side SDKs

Antom provides open SDKs to simplify your integration process. These SDKs simplify the integration process by handling tasks such as adding and validating API signatures. To get started, download the appropriate SDK package, install the server-side library, initialize a request instance, and begin your Antom API integration.

Integrate the Antom SDK package

For different payment scenarios, specific SDKs for Java, Python, PHP, .Net and GO are provided. You can use the appropriate SDK according to your needs:

Online payment SDKs

In-store payment SDKs

Java

Java

Python

Python

PHP

PHP

.Net

.Net

GO

GO

Step 1: Install an API library

The following codes use Java as an example. You need to install Java 6 or higher. You can find the latest version on GitHub.

copy
<dependency>
    <groupId>com.alipay.global.sdk</groupId>
    <artifactId>global-open-sdk-java</artifactId>
    <version>{latest_version}</version>
</dependency>

Step 2: Initialize the request instance

Create a singleton resource to make a request to Antom.

copy
import com.alipay.global.api.AlipayClient;
import com.alipay.global.api.DefaultAlipayClient;
import com.alipay.global.api.model.constants.EndPointConstants;
public class Sample {
    /**
     * replace with your client id <br>
     * find your client id here: <a href="https://dashboard.antom.com/global-payments/developers/quickStart">quickStart</a>
     */
    public static final String CLIENT_ID = "your_client_id";
    /**
     * replace with your antom public key (used to verify signature) <br>
     * find your antom public key here: <a href="https://dashboard.antom.com/global-payments/developers/quickStart">quickStart</a>
     */
    public static final String ANTOM_PUBLIC_KEY = "antom_public_key";
    /**
     * replace with your private key (used to sign) <br>
     * please ensure the secure storage of your private key to prevent leakage
     */
    public static final String MERCHANT_PRIVATE_KEY = "your_private_key";
    private final static AlipayClient CLIENT = new DefaultAlipayClient(
            EndPointConstants.SG, MERCHANT_PRIVATE_KEY, ANTOM_PUBLIC_KEY, CLIENT_ID);
}