The moment it happens
Catch failed subscription renewals
When a subscriber's renewal fails, you get their details so you can reach out before they lapse.
- Runs
- The moment it happens
- Apps
- PayPal
- AI
- Not needed
- Access
- REST app
Send this to your assistant
Create a ClickRuntime automation: when a PayPal subscription payment fails, email me the subscriber's name, email, plan and amount so I can contact them.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
For a subscription seller, the worst renewals are the ones that fail quietly. A subscriber's card expires, PayPal cannot collect, and a few weeks later the subscription is suspended. The customer never decided to leave, but they are gone, and the seller only notices when monthly revenue dips and someone digs into the reason.
When PayPal reports that a subscription payment failed, the subscription and the subscriber's details are fetched, and an email goes to you right away with who they are, which plan it was and when it happened. That gives you time to contact the subscriber and ask them to update their funding source before PayPal gives up.
It matters most for businesses where a handful of subscribers account for much of the revenue and each save is worth chasing.
What you get out of it
Win back customers who never meant to leave
A friendly note asking a subscriber to update their payment method recovers many renewals. These people still want the product, so a quick reminder often works where silence loses them.
Contact them before suspension
PayPal retries failed payments for a period and then suspends the subscription. An email that arrives early in that window leaves time to resolve the problem instead of reactivating an account afterward.
Know who to write to
The email includes the subscriber's details, so the person following up has a name and address in front of them. There is no need to look up the subscription in PayPal before drafting the note.
Measure your involuntary churn
A history of failed renewals in your inbox shows how many losses are payment problems rather than decisions. That helps you decide whether to invest in outreach or leave it alone.
Protect predictable income
Recurring revenue is only predictable if renewals succeed. Catching failures quickly keeps forecasts close to reality and avoids sudden shortfalls that surprise the person paying the bills. Missing renewals mean missing budget for the month ahead.
How it works
What happens, step by step
When a PayPal subscription renewal fails, PayPal tells ClickRuntime straight away.
ClickRuntime looks up the subscription to find the subscriber, the plan and the amount due.
You get an email with those details, so you can contact the customer before they lose access.
Before it runs live
- Connect PayPal
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other PayPal steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http, notify
API = "https://api-m.paypal.com"
def paypal_headers():
resp = http.post(f"{API}/v1/oauth2/token", data={"grant_type": "client_credentials"},
auth=(credentials.secret("PAYPAL_CLIENT_ID"), credentials.secret("PAYPAL_CLIENT_SECRET")))
resp.raise_for_status()
return {"Authorization": f"Bearer {resp.json()['access_token']}"}
@on_event
def handle(event):
body = event.json
if body.get("event_type") != "BILLING.SUBSCRIPTION.PAYMENT.FAILED":
return {"emailed": False}
headers = paypal_headers()
sub = http.get(f"{API}/v1/billing/subscriptions/{body['resource']['id']}", headers=headers).json()
plan = http.get(f"{API}/v1/billing/plans/{sub['plan_id']}", headers=headers).json()
s = sub["subscriber"]
failed = sub["billing_info"].get("last_failed_payment", {}).get("amount", {})
notify.email_me(f"PayPal subscription payment failed: {s['email_address']}",
f"Subscriber: {s['name']['given_name']} {s['name']['surname']} <{s['email_address']}>\n"
f"Plan: {plan['name']}\nAmount: {failed.get('currency_code', '')} {failed.get('value', '?')}")
return {"subscription": sub["id"]}FAQ
Common questions
Does PayPal retry the payment automatically?
Will I see which subscriber it was?
Can I send the email to my support inbox instead of mine?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post each PayPal payment to Slack
Every completed payment shows up in Slack with who paid and how much.
See how it worksHear about denied PayPal payments
When a payment is denied, you know straight away and can contact the buyer.
See how it worksGet dispute details before the deadline
A new dispute lands in your inbox with its reason, amount and the date you must reply by.
See how it worksKeep exploring
Set up “Catch failed subscription renewals” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.