Stripe new dispute notifications on your phone.

Get a Highest-priority push notification the moment a customer disputes a Stripe charge, with the reason and the evidence deadline.

charge.dispute.createdFinancePayments Signature verified
How it works

Three steps to your first push

STEP 01

Install the recipe

One click in Studio gives you a personal webhook URL.

STEP 02

Paste your URL into Stripe

Add it as a webhook for charge.dispute.created.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Stripe charge.dispute.created webhook

  1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL.
  2. In the Stripe Dashboard, open Workbench > Webhooks and click Add destination.
  3. Select the charge.dispute.created event and choose Webhook endpoint.
  4. Paste your webhook URL as the endpoint URL and save.https://••••••••/•••••••• your personal URL, shown after install
  5. Reveal the signing secret (whsec_…) and copy it into JustPush.
The code

What runs when the webhook arrives

Studio calls handleRequest(request) with the incoming webhook and sends the message it returns. It's yours after install; change anything.

transform.js
1// Stripe → charge.dispute.created
2// Fires when a customer disputes a charge.
3// Docs: https://docs.stripe.com/api/events/types
4//
5// Paste this into a JustPush Studio integration and add a Stripe webhook destination
6// for the "charge.dispute.created" event pointing at the integration's endpoint URL.
7
8// Stripe amounts are in the currency's smallest unit (cents), except for
9// zero-decimal currencies such as JPY, where 500 means ¥500.
10const ZERO_DECIMAL = new Set([
11 "bif", "clp", "djf", "gnf", "jpy", "kmf", "krw", "mga",
12 "pyg", "rwf", "ugx", "vnd", "vuv", "xaf", "xof", "xpf",
13])
14
15function money(amount, currency) {
16 // Don't invent a figure when the event doesn't carry one.
17 if (typeof amount !== "number" || !Number.isFinite(amount) || !currency) return null
18
19 const code = String(currency).toLowerCase()
20 const value = ZERO_DECIMAL.has(code) ? amount : amount / 100
21
22 try {
23 return new Intl.NumberFormat("en-GB", { style: "currency", currency: code }).format(value)
24 } catch {
25 return `${value} ${code.toUpperCase()}`
26 }
27}
28
29// Test-mode objects live under /test in the Dashboard.
30function dashboardUrl(event, path) {
31 return `https://dashboard.stripe.com/${event.livemode ? "" : "test/"}${path}`
32}
33
34// Stripe timestamps are seconds since epoch.
35function day(seconds) {
36 return new Date(seconds * 1000).toLocaleDateString("en-GB", {
37 day: "numeric",
38 month: "short",
39 timeZone: "UTC",
40 })
41}
42
43function handleRequest(request) {
44 const event = request.body
45
46 // Guard: only handle this event type, so other Stripe events on this integration stay quiet.
47 if (event?.object !== "event" || event.type !== "charge.dispute.created" || !event.data?.object) {
48 console.log(`Ignoring Stripe event "${event?.type ?? "unknown"}"`)
49 return null
50 }
51
52 const dispute = event.data.object
53 const amount = money(dispute.amount, dispute.currency) ?? "A payment"
54 const reason = dispute.reason ? dispute.reason.replace(/_/g, " ") : null
55 const dueBy = dispute.evidence_details?.due_by
56
57 return {
58 title: "⚖️ New dispute",
59 message:
60 `${amount} disputed` +
61 (reason ? ` as ${reason}` : "") +
62 (dueBy ? `. Respond by ${day(dueBy)}.` : ""),
63 topic: "Stripe",
64 priority: 2, // Highest — the money is already withdrawn and the evidence clock is ticking
65 buttons: [{ cta: "Respond", url: dashboardUrl(event, `disputes/${dispute.id}`) }],
66 }
67}
Payload

The Stripe charge.dispute.created webhook

This is what Stripe sends to your URL for charge.dispute.created. It is a sample, trimmed to the fields recipes use.

charge.dispute.created · sample.json
1{
2 "id": "evt_test_dispute_created",
3 "data": {
4 "object": {
5 "id": "dp_test_1Qy7Kx",
6 "amount": 4900,
7 "charge": "ch_test_3Qx1Y2",
8 "object": "dispute",
9 "reason": "product_not_received",
10 "status": "needs_response",
11 "currency": "eur",
12 "payment_intent": "pi_test_3Qx1Y2",
13 "evidence_details": {
14 "due_by": 1791417599,
15 "past_due": false,
16 "has_evidence": false,
17 "submission_count": 0
18 }
19 }
20 },
21 "type": "charge.dispute.created",
22 "object": "event",
23 "created": 1790584200,
24 "livemode": false,
25 "api_version": "2025-09-30.clover"
26}
Security

How the Stripe signature is verified

Stripe-Signature

Stripe signs every webhook with a timestamped HMAC-SHA256 signature in the Stripe-Signature header, made with your endpoint's signing secret. Add the secret to the recipe in Studio and JustPush checks every request before your code runs, so requests that don't come from Stripe never reach your phone.

FAQ

Stripe new dispute notifications: questions

Does this work on iPhone and Android?

Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification.

Do I need to write code?

No. Install the recipe in Studio, paste your webhook URL into Stripe and you are done. The code is there if you want to change the text, the sound or the buttons.

Can I change what the notification says?

Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save.

What does it cost?

JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.

Ready when you are

Stripe on your phone in two minutes.

Install the recipe, paste one URL, done. Free for 30 days, no credit card required.