Overview
Capabilities
-
Obtain available payment methods : You can call the consult API to obtain the available payment methods that are specified in your contract. Alipay uses the API to return you a list of payment methods that are sorted according to payment information such as payment amount and the user's region. You can display the payment methods based on the provided list on your page. -
Initiate a payment : After a user chooses a payment method for a submitted order and clicks or taps Go to Pay , you must call the pay API to send a payment request to Alipay to obtain a payment link and continue the payment process. For card payment methods, the following functions are provided:
-
Request to capture an authorized payment : You can call the capture API to request to capture an authorized payment. -
Receive the capture result : Alipay uses the notifyCapture notification to send you the capture result. -
Receive information about a chargeback : Alipay uses the notifyDispute notification to notify you of an occurred chargeback or the liability judgment of the chargeback.
-
Obtain the payment result :
-
Synchronous response : After a user completes a payment, they are redirected to Alipay's payment result page. -
Asynchronous notification : After you set an asynchronous notification address by specifying paymentNotifyUrl in the pay API, Alipay uses the notifyPayment notification to send you an asynchronous notification when a payment is successful or expired. -
Payment inquiry result : You can call the inquiryPayment API to inquire about the payment status.
Integration
Interfaces
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
-
Notification of the payment result: notifyPayment -
Notifications of the refund result: notifyRefund -
Notifications of the capture result: notifyCapture -
Notifications about the chargeback: notifyDispute
SDK
Note : You can download the SDK package in Antom Dashboard .
-
Java SDK: Supports all the same functionalities as the API solution. -
Python, PHP, and . Net SDKs: Supports only part of the functionalities that the API solution provides. The following table shows the functionalities that Python, PHP, and . Net SDKs currently support:
| |
| |
| |
| |
| |
| |
| |
|