← All use cases
Failed card payments
Card payments rejected by the provider, so the order is on hold until the customer pays.
- Category
- Payments
- Team
- Payments Ops
- Priority
- high
- Runs
- Every 5 minutes
Why watch it
A declined card is a sale waiting to be saved. The sooner someone reaches out, the more likely the customer retries instead of leaving.
The query
Every row it returns is a case to handle. Run it every so often and Pulso opens a signal only for rows it has not seen before.
SQL
Every 5 minutes
SELECT p.reference AS payment, o.number AS order_number, c.name AS customer, c.email,
p.amount_eur, p.provider, p.failure_code, p.created_at AS failed_at
FROM payments p
JOIN orders o ON o.id = p.order_id
JOIN customers c ON c.id = o.customer_id
WHERE p.status = 'failed'
ORDER BY p.created_at DESC
Unique by
payment
The signal
Its title uses the row’s columns, so the inbox reads like a to-do list:
Payment failed for order {{ order_number }}
Set up “Failed card payments” in minutes
Connect your database, paste the query, adjust the table names and pick who handles the signals. Free during early access.