Why isn't Flow detecting my order tags for automated payment capture?

Solved

Why isn't Flow detecting my order tags for automated payment capture?

ivanmykel
Tourist
3 1 0

Hi, I'm using nofraud to screen orders for risk. It always tags my orders with tags like nofraud_skip, or nofraud_merchantskip. Once screened, I have to capture payments manually and I'm trying to automate that by inputting the tags into Flow and getting them to capture themselves. For some reason, Flow isn't reading the tags, therefore not capturing. Here's my workflow, along with the conditions and the error I'm getting.

ivanmykel_0-1668548208021.png

ivanmykel_2-1668548447150.png

 

ivanmykel_1-1668548405925.png

 

 

Accepted Solution (1)
ivanmykel
Tourist
3 1 0

This is an accepted solution.

Hi! Thanks for your response. With the info you gave me, I decided to set a 'wait' action before the tag conditions for 2 minutes. Hopefully this will give nofraud enough time to tag the orders. I also changed the first node to 'order created' instead of 'order risk analyzed'. I'm gonna let this run for the day and see how it goes.

View solution in original post

Replies 4 (4)

Steve_L
Shopify Staff
11 2 3

Hi, I suspect there's a race condition between nofraud adding the tags, and the Flow Workflow being run.

For example, the Workflow may run before nofraud has added the tags, as these are 2 distinct async systems. The Order Risk Analyzed trigger only relates to Shopify Risk Analysis, so there's no guarantee that nofraud has completed yet.

 

Unfortunately, there's not much we can do here unless nofraud implements a Flow trigger so that the Workflow can run after nofraud has completed analysis.

To learn more visit the Shopify Help Center or the Community Blog.

ivanmykel
Tourist
3 1 0

This is an accepted solution.

Hi! Thanks for your response. With the info you gave me, I decided to set a 'wait' action before the tag conditions for 2 minutes. Hopefully this will give nofraud enough time to tag the orders. I also changed the first node to 'order created' instead of 'order risk analyzed'. I'm gonna let this run for the day and see how it goes.

Steve_L
Shopify Staff
11 2 3

Ah, yeah, wait is a good idea, not sure why that didn't occur to me. It's not a guarantee, but definitely decreases the likelihood of a race condition, and if time is not a factor, you can increase it further if need be.

To learn more visit the Shopify Help Center or the Community Blog.

ivanmykel
Tourist
3 1 0

Update: It's working perfectly! All my nofraud-screened orders are being captured automatically after a brief 2-minute wait period. Thanks again for helping to identify the issue!