Recurly
Test a Recurly Subscriptions dunning campaign and read the invoice and subscription outcomes after recovery or expiry.
- Initial payment fails
- Find the invoice and the campaign that applies.
- Recovery window
- Verify attempts and current access match policy.
- Final outcome
- Read back payment and subscription status separately.
A $300 renewal fails because the customer’s payment method is no longer usable. Finance wants to try collection again while keeping the account active during the recovery window. In Recurly Subscriptions, check what the dunning campaign does to the invoice and what it does to the subscription.
Define the failed invoice and subscription outcomes
In Dunning Management, select the campaign and check the notification schedule and end-of-cycle choices for the relevant invoice type. Recurly versions dunning settings. A change to a campaign will not alter an invoice already in dunning. Use a new test invoice after changing the campaign. Agree whether a failed recovery marks the invoice failed or leaves it past due, and whether it should expire the subscription.
In this example, the test campaign keeps service active during the scheduled window. Test a successful recovery using a valid replacement payment method and read both the invoice and subscription afterward. For an exception that Finance handles manually, distinguish Stop Dunning, which leaves the invoice past due and halts the campaign’s retries and emails, from Stop Collection, which closes the invoice as failed. Check Account Updater settings separately.
Read the invoice and subscription after each test
| Test | What to verify | Evidence |
|---|---|---|
| Initial failed payment | The invoice enters the applicable campaign. Service follows the agreed during-dunning policy. | Invoice ID, payment attempt and subscription status. |
| Payment recovered | The invoice is paid, the account reflects the recovered balance, and collection attempts for that invoice end. | Successful transaction and current subscription state. |
| Recovery window ends unpaid | The invoice and subscription each follow the configured end-of-cycle policy. | Final invoice status, subscription status and customer notice. |
Record the campaign version with the test outcomes. The integration guide covers how to sync the latest invoice and subscription state without treating an initial payment failure as the final outcome.