APIs and SDKs
This topic lists all the APIs that are used in Auto Debit.
APIs
The following table lists the APIs that are used in the integration process.
Name | Endpoint | Direction |
/aps/api/v1/payments/pay | Alipay+ ->Mobile Payment Provider | |
/aps/api/v1/payments/inquiryPayment | ||
/aps/api/v1/payments/refund | ||
/aps/api/v1/payments/cancelPayment | ||
/aps/api/v1/authorizations/applyToken | ||
/aps/api/v1/authorizations/cancelToken | ||
/aps/api/v1/authorizations/prepare | ||
(Conditional) | /aps/api/v1/users/sendOTP | |
(Conditional) | /aps/api/v1/users/verifyOTP | |
(Recommended) | /aps/api/v1/payments/notifyPayment | Mobile Payment Provider->Alipay+ |
/aps/api/v1/authorizations/consultUnbinding | ||
/aps/api/v1/authorizations/authNotify |
Note: The notifyPayment API is recommended so the MPP can notify Alipay+ of the payment result.
Client SDK APIs
The following table lists the Alipay+ client SDK APIs that are used in the integration process.
Name | Description | Direction |
Android: signContract iOS: signContract | Start contract signing | MPP app > Alipay+ client SDK |
Android: showAuthPage iOS: showAuthPage | Show the authorization page | Alipay+ client SDK > MPP app |
Note: You need to integrate the client SDK only if the terminal type of the MPP client is App and you need to support all merchants that are available with Alipay+.