Docs
You are viewing:
Product Catalog 1.0
Chargebee Embedded Payments offers a robust retry mechanism to maximize payment success rates and minimize revenue leakage. These capabilities span both synchronous (real-time) and asynchronous (scheduled) retry strategies.
This document outlines the two layers of retry logic embedded in the system:
Synchronous Retries These retries occur immediately as part of the same execution flow. When an operation (such as an API call or database transaction) fails, the system attempts it again right away, typically using a retry policy with a maximum retry count and a backoff strategy (e.g., exponential backoff).
Asynchronous Retries These retries are deferred and managed independently of the original execution flow. Failed operations are queued or scheduled to be retried later, often through a background job, task queue, or message broker.
Chargebee Embedded Payments uses a dual-layered retry strategy to maximize payment recovery, combining real-time intelligence with scheduled follow-ups. The table below compares the synchronous and asynchronous retry layers:
Layer | Synchronous Retry | Asynchronous Retry |
---|---|---|
Type | Real-time | Scheduled |
Timing | Instant (during transaction) | Post-failure (days/weeks) |
Optimized For | Card issuer behavior and ML-based tweaks | Long-tail recovery, customer reminders |
Configuration Needed | Fully managed | Configurable via Dunning V2 |
When a payment attempt fails at the time of transaction, either for an initial transaction or a recurring charge, depending on the failure reason, Chargebee Embedded Payments automatically triggers retries. No configurations are needed for synchronous retries.
When a transaction fails, based on the decline reason, Chargebee Embedded Payment assesses whether or not to initiate a retry attempt.
If a retry is deemed beneficial, the system instantly repurposes and resubmits the transaction using proprietary machine learning logic. The retry payload is dynamically adjusted based on several factors, including:
This intelligent retry mechanism increases the likelihood of transaction recovery in real time. These retries happen within milliseconds of the original attempt and are fully transparent to the end customer.
In addition to the intelligent synchronous layer, Chargebee Embedded Payments leverages the full power of Chargebee Billing’s Dunning v2 engine for scheduled retries. This asynchronous retry flow enables sustained follow-up to recover payments that cannot be resolved immediately.
This ensures a long-term follow-up process to recover failed payments that couldn’t be fixed immediately. Learn more about configuring Dunning in Chargebee Billing.
Was this article helpful?