Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

Overview

Cashier payment can help you build the ability to receive payments on your website or application, supporting various clients (including desktop websites, mobile websites, and mobile applications) for online payments, including e-wallet payments, bank transfer payments, and credit card payments. You only need to integrate once to easily add various payment methods to your page. Your buyers can use secure payment methods for convenient payments according to their preferences.

Integration options

Antom provides two integration options: SDKs and APIs-only. Each integration option has its own advantages, and you can choose the appropriate solution according to your business needs and technical level.

Antom SDKs provide you with a preset collection of payment functions, making it easy to integrate payment functions into your website or application. Antom SDK provides UI components, events, and error handling functions to help you easily implement payment functions and obtain a smooth payment experience without writing a lot of code.

Experience and integration process

Different integration options provide specific integration processes and payment experiences for different client types.

Integration options

Terminal type

Payment experience and integration process by payment methods

SDKs

WEB/WAP

APM payments

Card payments

Android

APM payments

Card payments

iOS

APM payments

Card payments

APIs-only

WEB

APM payments

Card payments (Hosted mode)

Card payments (Server-to-server mode)

WAP

App

Integration process overview

A brief overview of the integration process is shown below. For detailed integration steps, see Integration guides.

收银台1.png

The following process shows how to integrate Checkout Payment via Antom SDKs:

  1. Create the createPaymentSession request
    After the buyer selects a payment method and submits the order, you can obtain the payment session by calling the createPaymentSession interface.
  2. Invoke the client SDK
    On the client side, invoke the SDK through the payment session. The SDK will handle information collection, redirection, app invocation, QR code display, verification, and other processes based on the payment method's characteristics.
  3. Get the payment result
    Obtain the payment result by using one of the following two methods:
  • Asynchronous Notification: Specify the paymentNotifyUrl in the createPaymentSession interface to set the address for receiving asynchronous notifications. When the payment is successful or expires, Antom will use notifyPayment to send asynchronous notifications to you.
  • Synchronous Inquiry: Call the inquiryPayment interface to check the payment status.
  1. Get the capture result (Card Payment)
    For card payments, you need to obtain the capture result by using one of the following two methods:
  • Asynchronous Notification: Specify the paymentNotifyUrl in the createPaymentSession interface to set the address for receiving asynchronous notifications. When the payment request is successful or expires, Antom will use notifyCapture to send asynchronous notifications to you.
  • Synchronous Inquiry: Call the inquiryPayment interface to check the payment request status.