r/AutomateShopify • u/Short-Anteater-1609 • 6d ago
Shopify Flows
Payment Capture Flow - Don't capture fraudulent orders
I learned the hard way that on a $5000 fraudulent order if you capture the payment you're going to at least have a $150± processing fee even if you cancel and refund the customer. OUCH!
So I turned off automatic payment capture and created this flow. If an order is Medium or High risk level it puts the order on hold, emails me, and keeps the payment as authorized.
Here's a prompt you can drop into Sidekick to accomplish this (just update your email):
Create a Shopify Flow workflow named “Payment Capture Flow”.
Keep it as a draft. Do not activate it.
Trigger:
Order risk analyzed.
Condition:
Check whether orderRiskLevel is MEDIUM or HIGH.
If YES (MEDIUM or HIGH):
1. Add this order tag:
Payment hold - fraud review
2. After tagging, run these two actions in parallel:
A. Hold fulfillment
- Hold the order’s fulfillment orders.
- Reason: Awaiting payment
- Reason notes: Leave blank.
- Notify merchant: No.
B. Send internal email
- Recipient: [email protected]
- Subject:
⚠️ Order {{ order.name }} flagged for fraud review ({{ orderRiskLevel }} risk)
- Message:
Order {{ order.name }} has been flagged with a {{ orderRiskLevel }} fraud risk level and is on hold pending review before payment capture.
Please review this order and capture payment manually if it is legitimate.
Customer: {{ order.customer.displayName }}
Email: {{ order.email }}
Total: {{ order.totalPrice }} {{ order.currencyCode }}
View order: https://{{ shop.myshopifyDomain }}/admin/orders/{{ order.legacyResourceId }}
Do not capture payment automatically on the YES branch.
If NO (neither MEDIUM nor HIGH):
1. Run the Capture payment action for this order.
Validate the workflow and report any errors or unsupported variables. Do not silently omit any steps.
3
Upvotes
1

2
u/Repulsive_Bank_2204 3d ago
one thing to add: the authorization doesn't last forever. if the review takes a few days, the auth can expire and you're back to chasing the customer for a new card, so set the review window and the auto-cancel rule before you turn it on. also check whether your 3pl pulls by order date instead of fulfillment status, because a held fulfillment order still shows up in some syncs and the hold is invisible to them.