Show an in-app banner for at-risk customers
A dunning email is easy to miss. This one script shows a plain, dependency-free banner inside your own app the moment a logged-in customer has a failed payment, linking straight to the same card-update page the email sends.
1. Find your connection id
On the Connections page inside your team, each connected processor shows its own connection id. It has no write access by itself -- it only lets this script ask "does this specific customer have an open dunning sequence right now".
2. Add the snippet
Paste this once, anywhere in your app's layout, for logged-in customers only. Replace data-customer-ref with the same id you use with your processor (Dodo customer_id, Stripe customer id, or Paddle customer_id).
<script
src="https://retrybolt.com/api/retrybolt/widget.js"
data-connection="YOUR_CONNECTION_ID"
data-customer-ref="{{ current_user.processor_customer_id }}"
defer
></script>What it does, honestly
- Calls
GET /api/retrybolt/banneronce per page load. - If there's no open dunning sequence for that customer, nothing is rendered -- no flash, no placeholder.
- If there is one, it inserts a single fixed banner at the top of
bodywith the amount and a real "Update card" link -- not a fake countdown or urgency timer. - No cookies are set, and no data leaves retrybolt.com.