A Failed Payment Should Stop the Welcome Email, Not Just Log an Error
The Zap kept sending access details to people whose card had been declined. Here is the filter-and-delay order that fixed it without rewriting the whole automation.
The bug was easy to miss because none of the steps failed. A payment event arrived, the Zap created an account, sent the welcome email, and added the customer to a mailing list. The only problem was that the payment had been declined. The tools all reported success, because each one did exactly what it was told. I rebuilt the Zap around one idea: treat the payment status as a gate, not as data to be passed along.
The first step after the trigger is a filter that continues only when the status says paid. That single module stopped the leak. Then I added a short delay before the account-creation step, because a payment can be updated minutes later and I would rather wait ten minutes than send an email I have to apologize for. After the delay, a second lookup checks the status again. If it is still not paid, the Zap branches to an internal alert instead of creating anything. The customer gets one clear message from a human, which is better than automated access details followed by a collection notice.
The part I nearly skipped was the alert. A stopped workflow is invisible unless somebody hears about it. I send a Slack message with the customer id, the amount and the failure reason, and I review it each morning. On the first week that caught two cards that had simply expired; a short note got both fixed. If you sell in the US, make sure the message about a failed charge is accurate and not framed as a threat — the FTC has expectations about collection language. For EU customers, keep the payment record in a system whose data handling you can describe, since GDPR or DSGVO applies to the failed attempt as well as the successful one.
Zapier (zapier.com)
Best for: small teams that need payment events to control downstream steps, not just appear in a log
Key features: filters and paths, delays, lookup steps, and connectors for payment processors, email and chat
Free plan: a free plan with a small task allowance; multiple Zaps and filters need a paid tier
Pricing: paid plans commonly start near $20/month and rise with task volume
Pros: the filter-and-path setup is visual enough to explain to a non-technical teammate; changes take minutes rather than a deploy
Cons: a filter that silently stops a run means nobody sees the failure unless you build an alert; task counts climb quickly with lookups
F
r
e
q
u
e
n
t
l
y
a
s
k
e
d
q
u
e
s
t
i
o
n
s
:
Q
:
W
h
y
n
o
t
j
u
s
t
c
h
e
c
k
t
h
e
p
a
y
m
e
n
t
s
t
a
t
u
s
a
t
t
h
e
e
n
d
?
A
:
B
e
c
a
u
s
e
t
h
e
d
a
m
a
g
e
i
s
a
l
r
e
a
d
y
d
o
n
e
b
y
t
h
e
n
.
P
u
t
t
h
e
g
a
t
e
b
e
f
o
r
e
a
n
y
s
t
e
p
a
c
u
s
t
o
m
e
r
c
a
n
s
e
e
,
a
n
d
c
h
e
c
k
a
g
a
i
n
a
f
t
e
r
a
d
e
l
a
y
.
Q
:
H
o
w
l
o
n
g
s
h
o
u
l
d
t
h
e
d
e
l
a
y
b
e
?
A
:
L
o
n
g
e
n
o
u
g
h
f
o
r
y
o
u
r
p
r
o
c
e
s
s
o
r
t
o
s
e
t
t
l
e
a
r
e
t
r
y
.
T
e
n
t
o
f
i
f
t
e
e
n
m
i
n
u
t
e
s
w
o
r
k
e
d
f
o
r
u
s
;
c
h
e
c
k
y
o
u
r
p
r
o
v
i
d
e
r
b
e
f
o
r
e
p
i
c
k
i
n
g
a
n
u
m
b
e
r
.
Q
:
W
h
a
t
s
h
o
u
l
d
t
h
e
a
l
e
r
t
c
o
n
t
a
i
n
?
A
:
J
u
s
t
e
n
o
u
g
h
t
o
a
c
t
:
c
u
s
t
o
m
e
r
i
d
,
a
m
o
u
n
t
,
f
a
i
l
u
r
e
r
e
a
s
o
n
a
n
d
a
l
i
n
k
t
o
t
h
e
r
e
c
o
r
d
.
D
o
n
o
t
p
a
s
t
e
c
a
r
d
d
e
t
a
i
l
s
i
n
t
o
c
h
a
t
.
