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 |
| 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. |
|
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.
Test case 3. Merchant initiates a payment request with the cash register and the polling shows payment is successful
Merchant actions | Merchant verification point |
| Ensure that when payment is successful, the receipt is printed successfully or a payment success result is presented on the checkout page. |
|
Test case 4. Merchant initiates a payment request with the cash register and the polling shows payment time out
Merchant actions | Merchant verification point |
| Ensure that when payment fails, an unsuccessful payment result is presented on the checkout page. |
|
Refund
The following section presents production test cases for refund.
Test case 1. Full refund is successful
Merchant actions | Merchant verification point |
|
|
|
Test case 2. Multiple batch refund is successful
Merchant actions | Merchant verification point |
|
|
|