Failed payments and retries
Set the retry schedule for declined payments, see what happens when it runs out, and block customers on chargebacks.
When a customer's payment is declined, Payrudder does not give up at once. Dunning is the schedule on which it tries again, and what happens when the schedule runs out.
Dunning applies to invoices that Payrudder collects. A subscription a payment provider runs itself (Paddle) is retried by the provider on the provider's own rules.
The schedule
GET /v1/dunning-settings returns:
retry_hours: the delays between attempts,defaults_in_use: true when you have set nothing and the deployment's delays apply.
PUT /v1/dunning-settings replaces them: up to six delays, each 1 to 720 hours (minutes in a sandbox account, so a test shows the whole cycle at once).
A declined charge is retried after the first delay, then after the second, and so on. When the delays run out the invoice is given up as uncollectible. An empty list gives up on the first decline.
A decline that the provider says must not be tried again ends the schedule at once, whatever attempts are left. Today that is Stripe's do_not_try_again advice.
What the customer and you see
- The invoice stays
openwhile attempts remain. After the last it isuncollectible(webhookinvoice.uncollectible) and the customer gets the payment-failed mail. The customer can still pay an uncollectible invoice on its page, by card (a bank transfer is not offered for it). Paying it makes itpaidand sendsinvoice.paid(Invoices). - The subscription whose payment failed can show
SUBSCRIPTION_STATE_PAST_DUE(Subscriptions). It is still billed, and a change of package is refused while it is past due. - The report:
GET /v1/reports/dunninglists the invoices whose payment has not gone through, with the customer's external id and the provider's last error. In the console this is the dunning report.
Chargebacks
block_on_chargeback in the same settings (off unless you turn it on) blocks a customer, with the category chargeback, as soon as their bank opens a formal dispute. A blocked customer can make no new purchases, and their open invoices can no longer be paid.
- The block never lifts by itself; you lift it on the customer.
- An inquiry does not block.
- The disputes themselves are
GET /v1/disputesand the webhookpayment.disputed(Webhooks).
In the console these settings are on the page named Tax (Meters, packages and pricing).