- Successful Payment:
- Enter valid payment details and click on the ‘Pay’ button.
- Verify that the payment is processed successfully.
- Verify that the payment receipt is generated and displayed.
- Invalid Payment Details:
- Enter invalid payment details such as incorrect card number, expiry date, CVV, or billing address.
- Verify that an error message is displayed on the payment page.
- Verify that the payment is not processed.
- Payment Declined:
- Enter valid payment details, but ensure that there is insufficient balance in the account.
- Verify that the payment is declined by the payment gateway.
- Verify that an appropriate error message is displayed on the payment page.
- Payment Timeout:
- Enter valid payment details and click on the ‘Pay’ button.
- Simulate a delay in the payment processing by the payment gateway.
- Verify that a timeout error message is displayed on the payment page.
- Multiple Payment Attempts:
- Enter valid payment details and click on the ‘Pay’ button multiple times.
- Verify that only one payment is processed.
- Verify that the payment receipt is generated only once.
- Payment Refund:
- Make a payment using valid payment details.
- Verify that the payment is processed successfully.
- Initiate a refund request for the payment.
- Verify that the refund is processed successfully.
- Verify that the refunded amount is credited back to the original payment source.
- Payment Confirmation:
- Enter valid payment details and click on the ‘Pay’ button.
- Verify that a confirmation message is displayed on the payment page.
- Verify that a confirmation email is sent to the user’s registered email address.
- Payment Security:
- Enter valid payment details and click on the ‘Pay’ button.
- Verify that the payment gateway uses secure encryption to protect the payment information.
- Verify that the payment information is not stored in the system after the payment is processed.