Processing Alipay Transactions

Processing Alipay Transactions
Initiating a Payment
To initiate a payment:
Step 1
Set the apInitiateService_run field to true.
Step 2
 
Set the value of the apPaymentType field to APD for a web payment or ADM for a mobile payment. The same value must be used in the follow-on Check Payment Status request and the Refund request.
apInitiateService_productDescription—optional. See Working with Mutltibyte Character StringsWorking with Multibyte Character Strings.
purchaseTotals_currency—this value must be CNY. See Working with Mutltibyte Character StringsWorking with Multibyte Character Strings.
For detailed descriptions of all request and reply fields, see API Fields. For an Initiate Payment example, see Initiate Payment.
 
Checking Payment Status
To check the status of a payment:
Step 1
Set the apCheckStatusService field to true.
Step 2
 
Set the value of the apPaymentType field to APD for a web payment or ADM for a mobile payment. The same value must be used in the follow-on Check Payment Status request and the Refund request.
apCheckStatusService_apInitiateRequestIDreturned in the initiate payment service reply. See Reply Fields.
For detailed descriptions of all request and reply fields, see API Fields. For a Check Status example, see Check Status.
 
Refunding a Payment
 
To refund a payment:
Step 1
Set the apRefundService_run field to true.
Step 2
 
Set the value of the apPaymentType field to APD for a web payment or ADM for a mobile payment. The same value must be used in the follow-on Check Payment Status request and the Refund request.
apRefundService_requestIDreturned in the initiate payment service reply. See Reply Fields.
For detailed descriptions of all request and reply fields, see API Fields. For a Refund Payment example, see Refund.
To refund a transaction using the Business Center:
Step 1
Step 2
In the left navigation panel, choose Transaction Search > General Search. The General Search page appears.
Step 3
Check Search for an application or transaction type.
Step 4
Select Alternative Payment Initiate.
Step 5
Step 6
Click Search. The Transaction Search Results page appears.
Step 7
Click the transaction request ID link. The Transaction Search Details page appears.
Step 8
Under the heading Available Actions, click Refund. The Alipay Refund page appears.
Step 9
Step 10
Step 11
Click Refund. The Transaction Search Details page appears.
 
Viewing Transactions in the Business Center
Log in to the Business Center to search for and view transactions. Use the transaction search option to find and view transactions that you need to review or refund.
To find and view a transaction:
Step 1
Step 2
In the left navigation panel, choose Transaction Search > General Search. The General Search page appears.
Step 3
Check Search for an application or transaction type.
Step 4
Step 5
Step 6
Click Search. The Transaction Search Results page appears.
Step 7
Click the request ID link of the transaction. The Transaction Search Details page appears.