
Recover declined card payments instead of losing the customer
When an off-session card charge fails, a recovery case starts: retries on a schedule you set, an email asking for a new card when the card is dead, and a stop with a task for your team when retrying is pointless.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Saved-card charges fail all the time: insufficient funds, an expired or replaced card, a temporary hold. Odoo records the failed transaction and stops - no retry, no message to the customer, no way to collect a new card.
This module opens a recovery case for every failed off-session payment made with a saved card. It reads Stripe's decline code and sorts the failure: a soft decline (for example insufficient funds) is retried on your ladder of days, a card problem (for example an expired card) pauses retries and emails the customer a link to add a new card, and a hard decline (for example a stolen card) stops at once and gives the case to a person.
Retries go through Odoo's normal payment flow against the saved card. When a retry succeeds the case is marked recovered and the customer is told; when the ladder runs out, the final action you chose runs.
Who it is for
Subscription and recurring billing Renewals charged to a saved card, where failed payments are most of the churn. | Shops that charge saved cards Deposits, balances or reorders charged without the customer present. | Finance and customer success One list of payments being recovered, recovered and given up. |
Key features
Screenshots were taken on Odoo 19 with this module on a clean demo database (company Northwind Trading Co). Stripe was not contacted: the bench answered the Stripe API with a stand-in that returned the decline codes shown, and every key is a placeholder.
Feature 1
Every failed payment becomes a case
Invoicing -> Customers -> Payment Recovery lists the cases with customer, amount, decline type, number of tries, next attempt, responsible and state.
Started automatically when a saved-card charge fails

Feature 2
Recovered on a retry
Hannah's card had insufficient funds. The first retry was declined again, the second went through: the case shows Recovered by retry, the failed and successful attempts, and the customer got a payment confirmation email.

Feature 3
Hard declines stop immediately
Stripe reported stolen_card. Retrying cannot succeed and would only add declined entries to the customer's statement, so the case went to Given up and an activity Recover by hand was created for the responsible person.

Feature 4
Dead card: ask for a new one
An expired card is not retried. The case waits for a new card, retries are paused, and the customer is emailed a link to add one.

Feature 5
Soft declines follow the ladder
Tom's case is still recovering: one retry declined with insufficient funds, the next attempt is scheduled by the plan, and each attempt is listed with its status and message.
Retry now runs the next step immediately

Feature 6
Your retry ladder
The default plan retries after 1, 3 and 5 days, with an email on the later steps. Add steps, change days and emails, choose whether to ask for a new card, whether to stop on a hard decline, and what happens when the ladder is exhausted.
Delays are counted from the original failure

Feature 7
Email with a card update link
The customer receives a short email with the amount due and an Add a new card button.

Feature 8
Card update page
The link opens a page with the reference and the outstanding amount, and Odoo's payment form to save a different card.

Feature 9
Settings
In Invoicing settings choose the default dunning plan and open the plans and recovery cases.
Only off-session charges are recovered: a customer watching a payment fail on screen does not need an email about it

How it works, step by step
| 1 | Install A standard plan (retry after 1, 3 and 5 days) is created and used by default. |
| 2 | Adjust the plan Change the days, the emails and the final action, or create plans of your own. |
| 3 | Charges fail A failed off-session charge with a saved card opens a recovery case automatically. |
| 4 | The case works by itself A scheduled job runs due retries; card problems email the customer; hard declines are stopped and handed to a person. |
| 5 | Follow up Use the list to see what was recovered, what is waiting and what needs a person. |
Settings
| Default Dunning Plan | Plan used for new cases. |
| Retry steps | Days after the first failure, retry the charge or not, email to send. |
| Ask for a New Card | Email a card update link when the card cannot be charged as it stands. |
| Stop on a Hard Decline | Close the case instead of retrying a stolen, lost or blocked card. |
| When the Ladder Is Exhausted | For example: raise an activity for the salesperson. |
Frequently asked questions
Does it work with providers other than Stripe?
The retry engine works with any Odoo payment provider that saves cards (tokens). The soft, hard and card decline sorting needs Stripe's decline codes.
Will customers be charged again and again?
Only on the steps of your plan, never for a hard decline, and never on a card that is known to be dead.
Is the customer emailed for every failure?
Only on steps that have an email, when a new card is needed, and when the payment finally goes through.
What about payments made on the website?
A customer who is on the checkout page sees the failure there; only off-session charges with a saved card open a case.
Can I stop a case?
Yes. Stop Chasing cancels it.
Compatibility
Odoo 19 Community and Enterprise | Depends on Stripe payment provider, Invoicing payments, Portal | Tested 34 automated tests |
Turn failed payments back into paid ones
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module