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

  1. Places a pre-order on the terminal and presents the order code.

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

  1. Initiates a cashier payment request after the user scans the order code. The user enters the password to complete the payment.

Test case 2. Merchant places a pre-order and payment is cancelled after repeated polling shows unsuccessful payment

Merchant actions

Merchant verification point

  1. Places a pre-order on the terminal and presents the order code.

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

  1. Initiates a cashier payment request after the user scans the order code, and waits.

Refund

The following section presents production test cases for refund.

Test case 1. Full refund is successful

Merchant actions

Merchant verification point

  1. 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. Batch refund is successful

Merchant actions

Merchant verification point

  1. 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