Using Alipay Domestic Services

Using Alipay Domestic Services
 
All Alipay domestic payments are processed in Renminbi (RMB). You must capture the required billing and shipping information as part of the checkout process. Alipay does not provide this information to merchants. Alipay monitors their systems for problems; however, CyberSource recommends that you monitor their customer dropout rates.
Alipay Domestic Services
Initiate Payment Service
The initiate payment service illustrated in Figure 1 is described in detail below.
Figure 1
The Alipay domestic payments web site is a real-time payment solution enabling China- based merchants to trade in China. The payment process is as follows:
1
 
CyberSource recommends that you detect the customer’s payment device and include the appropriate value in the apPaymentType field: APD for a web payment (personal computer or laptop) or ADM for a mobile payment (handheld device).
2
3
4
The customer is redirected to the URL that CyberSource sent to you in number 3. This URL directs the customer to their Alipay account.
5
The customer logs in to their Alipay account or creates a new account. The RMB amount is displayed. The payment is not visible to you as the merchant, and the customer can cancel without your knowledge. The customer pays in RMB for a purchase from a domestic e-commerce web site.
6
Alipay accepts the payment request and sends payment notification to CyberSource that the payment is complete. Alipay withdraws the payment from the customer’s account in real time and remits the funds to the domestic merchant account in settlement.
7
8
Merchant URL Parameters
The merchant URL consists of the following parameters. See apInitiateReply_ merchantURL.
For example, it_b_pay=1.5h is not a valid value. The value must be an integer value of it_b_pay=90m.
Check Status Service
 
When the customer is redirected to your web site after making a payment, you must request the status of the payment at the recommended intervals listed below to receive the most recent status of the payment. The status confirms whether the payment was accepted or not between the customer and Alipay. Checking payment status is a follow-on transaction that uses the request ID returned from the initiate payment request. The initiate payment request ID links the check status request to the payment transaction.
If the payment status is PENDING, wait 1 hour before trying again. Recommended intervals are:
If the payment status does not change to COMPLETED after 15 days, do not send further payment requests. After 15 days, the status changes to ABANDONED.
Refund Payment Service
A refund is a follow-on transaction that uses the request ID returned from the initiate payment request. The request ID links the refund transaction to the payment transaction.
Supported Payment Types
Alipay Domestic Services support two payment types: web payments and mobile payments.
Include the APD value in the apPaymentType request field for the Initiate Payment request, the follow-on Check Payment Status request, and the Refund request.
Include the ADM value in the apPaymentType request field for the Initiate Payment request, the follow-on Check Payment Status request, and the Refund request.