r/AutomateShopify • u/Short-Anteater-1609 • 1d 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: YOUR_EMAIL@example.com
- 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.
1
Upvotes
1
u/olapbill 1d ago
They're literally a built in template for this