These detailed test cases can be used to check your Subscriptions card integration with PayMongo. This step is optional, but we highly recommend running these cases. These test cases were developed along with our internal QA team to account for every possible flow through the system.
Test Case | Card Number | Steps | Expected Response |
---|
Successful subscription activation | 4120000000000007 |
-
Upon attachment, the Payment Intent status is set to awaiting_next_action , and a redirect URL is returned.
-
Open the redirect URL and select Authorize Test Payment to proceed with the authorization and automatic capture. An Authentication Complete message is returned on the webpage.
-
After successful authorization, Payment Intent status value should become succeeded .
-
Upon getting the subscription’s details, it should now be active .
|
- Subscription status is
active .
- Payment intent status value should be
succeeded .
- A Payment object with a
paid status is attached to the Payment Intent (in the Payments array section of the Payment Intent object).
|
Failed payment for subscription activation | 5234000000000106 |
-
Upon attachment, the Payment Intent status is set to awaiting_next_action , and a redirect URL is returned.
-
Open the redirect URL and select Fail Test Payment to proceed with authorization and automatic capture. An Authentication failed or canceled message is returned on the webpage.
-
After failed authorization, Payment Intent status value should be awaiting_payment_method .
-
Upon getting the subscription’s details, it should be incomplete .
|
- Subscription status is
incomplete .After 24 hours, the Subscription status will update to incomplete_cancelled .
- Payment intent status value should be
awaiting_payment_method .
- A Payment object with a
failed status is attached to the Payment Intent (in the Payments array section of the Payment Intent object).
|
Successful subscription activation but failed recurring payment | 5123000000000001 |
-
Upon attachment, the Payment Intent status is set to awaiting_next_action , and a redirect URL is returned.
-
Open the redirect URL and select Authorize Test Payment to proceed with the authorization and automatic capture. An Authentication Complete message is returned on the webpage.
-
After successful authorization, Payment Intent status value should become succeeded .
-
Upon getting the subscription’s details, status is now active .
-
Simulate recurring payment for the subscription. The next payment cycle should now fail.
| Activation phase
Subscription status is now active . Recurring payment phase Payment intent status value should be succeeded . A Payment object with a paid status is attached to the Payment Intent (in the Payments array section of the Payment Intent object). Subscription status is now past_due with the invoice set to open . Status of payment intent associated with the invoice is awaiting_payment_method . After 3 automatic attempts, the Subscription status will update to unpaid .
|