Automating Fraud Detection and Restricting COD for Tagged Orders Using Shopify Flow and Scripts

Hello Shopify Community,

I’m working on automating a workflow for detecting high-risk fraud orders and restricting certain payment methods, specifically Cash on Delivery (COD), for those flagged orders on my Shopify Plus store. I’m looking for insights and validation on my approach, as well as any other ideas for improving this process.

Here’s what I’m aiming to achieve:

  1. Automatically Tagging High-Risk Orders:

    • I want to automatically tag any order identified as high-risk by Shopify’s built-in fraud detection system (as seen in the “High risk of fraud detected” warning) with a custom tag like “Fraud” or “RTO” (Return to Origin).
    • I’m currently using Shopify Flow for this:
      • Trigger: Order Created
      • Condition: Order Risk Level = High
      • Action: Add order tag “Fraud”

    This part seems to work well, but I’m wondering if there are any additional conditions I should be aware of that could help me refine this even further. For example, are there more advanced ways to flag potential fraud other than the built-in risk assessment?

  2. Hiding the COD Payment Option for Tagged Orders:

    • For orders tagged as “Fraud” or “RTO”, I want to automatically remove the COD payment method from the available payment options during checkout.
    • I want to know if anyone has additional suggestions for improving this implementation or has experience with better approaches for preventing high-risk customers and avoid spam orders from using risky payment options to avoid loss.
  3. Questions- Is this the best approach to automate fraud detection and payment method restrictions on Shopify Plus?

    • Are there any potential edge cases I should account for when tagging orders or removing payment options based on tags?
    • Does anyone have experience using Shopify Flow or Scripts in combination with third-party apps or fraud detection services to make this process more robust?
    • Are there other advanced fraud-detection methods I should consider, perhaps involving more detailed customer behavior or historical data?

    I appreciate any feedback or suggestions that could help make this implementation more efficient and secure. Thanks in advance!

2- you mean you want to disable those payment methods on future checkouts from customers whose previous orders were tagged as fraud?

3- It depends . If the native fraud detection isn’t as accurate as you’d like, I’d look at some of the 3rd party apps.

And yes I’ve done some automation flows related to this. For example checking the nofraud fraud score as well as the shopify fraud score and taking an action based on either of them.

I don’t really know which is the best - signified is popular but I noticed the ratings are lower than NoFraud, which I’ve seen in the wild before.

Flow works post-order, so it can’t prevent COD selection at checkout.

If the goal is to stop risky customers before checkout, COD Blacklist handles this in real time.

The app checks the customer at checkout against a blacklist managed by merchants. If a customer is flagged, COD can be hidden or the checkout can be blocked instantly, before the order is placed.

Merchants can also import their own blacklist (emails / phone numbers) to prevent specific customers from placing future COD orders.