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

      Test cases

      Refer to the following sections for details about test cases that are used in production environment. The following sections present production test cases for payment and refund.


      #Payment

      The following section presents production test cases for payment.


      Test case 1. Merchant initiates a payment request and payment is successful

      Merchant actions

      Merchant verification point

      Places an order and scans the user's payment code by using app, scanner, or terminal.

      Ensure that the payment success receipt is printed successfully or a payment success result is presented on the checkout page.


      Test case 2. Merchant uses a 24-digit payment code to pay and payment is successful

      Merchant actions

      Merchant verification point

      1. Places an order and scans the user's 24-digit payment code by using app, scanner, or terminal. Use the same device as the store to scan and verify, and confirm the device can recognize the 24-digit payment code.

      After generating a 24-digit payment code that starts with 25, 26, 27, 28, 29 and 30, ensure that the payment success receipt is printed successfully or a payment success result is presented on the checkout page.

      1. A 24-digit payment code that starts with 25, 26, 27, 28, 29 and 30 is generated to complete verification.

      Note:

      Use the user's app to scan the following QR code to change the code format manually. The code automatically restores to default format after one minute.

      image.png


      Test case 3. Merchant initiates a payment request with the cash register and the polling shows payment is successful

      Merchant actions

      Merchant verification point

      1. Places an order with payment amount greater than RMB 1,000 and scans the user's payment code by using app, scanner, or terminal.

      Ensure that when payment is successful, the receipt is printed successfully or a payment success result is presented on the checkout page.

      1. Initiates a payment request with the cash register to user. The user enters the password in 45 seconds to complete the payment. 


      Test case 4. Merchant initiates a payment request with the cash register and the polling shows payment time out

      Merchant actions

      Merchant verification point

      1. Places an order with payment amount greater than RMB 1,000 and scans the user's payment code by using app, scanner, or terminal.

      Ensure that when payment fails, an unsuccessful payment result is presented on the checkout page.

      1. Initiates a payment request with the cash register to user. If the user does not enter the password in 60 seconds, the payment will time out.


      #Refund

      The following section presents production test cases for refund.


      Test case 1. Full refund is successful

      Merchant actions

      Merchant verification point

      1. The merchant places an order and scans the user's payment code by using app, scanner, or terminal to complete the payment.
      1. Ensure that the payment success receipt is printed successfully or a payment success result is presented on the checkout page.
      2. Ensure that the refund receipt is printed successfully or a refund success result is presented on the checkout page.
      1. Perform a full refund according to the merchant order number on the checkout page or receipt presented by the user.


      Test case 2. Multiple batch refund is successful

      Merchant actions

      Merchant verification point

      1. The merchant places an order and scans the user's payment code by using app, scanner, or terminal to complete the payment.
      1. Ensure that the payment success receipt is printed successfully or a payment success result is presented on the checkout page.
      2. Ensure that the refund receipt is printed successfully or a refund success result is presented on the checkout page.
      1. Perform a partial refund in batches according to the merchant order number on the checkout page or receipt presented by the user.


      #More information

      Test

      Go live