Mollie payment failed notifications on your phone.

Get a High-priority push notification when a Mollie payment fails, including the card's decline reason when there is one.

payment.failedFinancePayments
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 Mollie

Add it as a webhook for payment.failed.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Mollie payment.failed 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 Mollie Dashboard, go to Developers > Webhooks and create a new webhook.
  3. Paste your webhook URL as the URL and select the payment.failed event.https://••••••••/•••••••• your personal URL, shown after install
  4. Choose the full payload (so the payment details are included) and save.
  5. This recipe needs a **next-gen** webhook (Developers > Webhooks), set to send the **full payload**. Classic webhooks (the `webhookUrl` you pass when creating a payment) only send the payment ID, so they can't produce a useful notification.
  6. Mollie signs next-gen webhooks with an `X-Mollie-Signature` header, but JustPush doesn't check it yet, so keep your endpoint URL private.
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// Mollie → payment.failed
2// Fires when a payment fails (for example, a declined card).
3// Docs: https://docs.mollie.com/reference/webhooks-new
4//
5// Needs a next-gen Mollie webhook (Developers > Webhooks) for the "payment.failed" event,
6// set to send the full payload, pointing at the integration's endpoint URL.
7
8// Mollie amounts are objects with a decimal string: { value: "10.00", currency: "EUR" }.
9// Returns null when there's no amount.
10function money(amount) {
11 const value = Number(amount?.value)
12
13 if (amount?.value == null || !Number.isFinite(value) || !amount.currency) return null
14
15 try {
16 return new Intl.NumberFormat("en-GB", { style: "currency", currency: amount.currency }).format(value)
17 } catch {
18 return `${amount.value} ${amount.currency}`
19 }
20}
21
22// Friendlier names for Mollie's payment method IDs.
23const METHODS = {
24 ideal: "iDEAL",
25 creditcard: "card",
26 bancontact: "Bancontact",
27 paypal: "PayPal",
28 applepay: "Apple Pay",
29 banktransfer: "bank transfer",
30 directdebit: "direct debit",
31 klarna: "Klarna",
32 in3: "iDEAL in3",
33 twint: "TWINT",
34 blik: "BLIK",
35 przelewy24: "Przelewy24",
36 eps: "EPS",
37}
38
39function handleRequest(request) {
40 const event = request.body
41
42 // Guard: only handle this event type, so other Mollie events on this integration stay quiet.
43 if (event?.resource !== "event" || event.type !== "payment.failed") {
44 console.log(`Ignoring Mollie event "${event?.type ?? "unknown"}"`)
45 return null
46 }
47
48 // Next-gen webhooks only include the object when "full payload" is chosen.
49 const entity = event._embedded?.entity
50
51 if (!entity) {
52 console.log("No embedded entity — set the webhook to send the full payload")
53 return null
54 }
55
56 const method = entity.method ? ` via ${METHODS[entity.method] ?? entity.method}` : ""
57 const who = entity.details?.consumerName ?? entity.details?.cardHolder
58 const test = entity.mode === "test" ? " (test mode)" : ""
59 const dashboard = entity._links?.dashboard?.href
60 // Card payments explain why they failed; other methods usually don't.
61 const reason = entity.details?.failureMessage ?? entity.details?.failureReason?.replace(/_/g, " ")
62
63 return {
64 title: "🚫 Payment failed",
65 message:
66 (money(entity.amount) ?? "A payment") +
67 method +
68 (who ? ` from ${who}` : "") +
69 (entity.description ? ` — ${entity.description}` : "") +
70 (reason ? `. ${reason}` : "") +
71 test,
72 topic: "Mollie",
73 priority: 1, // High — a customer tried to pay and couldn't
74 buttons: dashboard ? [{ cta: "View payment", url: dashboard }] : [],
75 }
76}
Payload

The Mollie payment.failed webhook

This is what Mollie sends to your URL for payment.failed. It is a sample, trimmed to the fields recipes use.

payment.failed · sample.json
1{
2 "id": "event_GvJ8WHrp5isUdRub9CJyH",
3 "type": "payment.failed",
4 "_links": {
5 "documentation": {
6 "href": "https://docs.mollie.com/reference/webhooks-new",
7 "type": "text/html"
8 }
9 },
10 "entityId": "tr_WDqYK6vllg",
11 "resource": "event",
12 "_embedded": {
13 "entity": {
14 "id": "tr_WDqYK6vllg",
15 "mode": "live",
16 "_links": {
17 "dashboard": {
18 "href": "https://my.mollie.com/dashboard/org_12345678/payments/tr_WDqYK6vllg",
19 "type": "text/html"
20 }
21 },
22 "amount": {
23 "value": "129.00",
24 "currency": "EUR"
25 },
26 "method": "creditcard",
27 "status": "failed",
28 "details": {
29 "cardLabel": "Mastercard",
30 "cardHolder": "Jane Doe",
31 "cardNumber": "6787",
32 "failureReason": "insufficient_funds",
33 "failureMessage": "The card has insufficient funds.",
34 "cardCountryCode": "NL"
35 },
36 "failedAt": "2026-09-28T09:29:47+00:00",
37 "resource": "payment",
38 "createdAt": "2026-09-28T09:28:11+00:00",
39 "profileId": "pfl_QkEhN94Ba",
40 "description": "Order #12346"
41 }
42 },
43 "createdAt": "2026-09-28T09:29:48.0Z"
44}
FAQ

Mollie payment failed 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 Mollie 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

Mollie on your phone in two minutes.

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