Is it possible to use a Flow to determine if an order passed 3D Secure?

Hi all,

Is it possible to use a Flow to determine if an order passed 3D Secure? The merchant is using Shopify payments if that helps?

I’m looking to trigger a Shopify Flow when the payment risk level is evaluated which performs an action if 3D Secure has passed, or a separate action if it fails.

Thanks

Flow supports it is it’s in the 2024-04 API. That said, I don’t see anything specific to 3ds in any API version. It’s possible though that it’s stuff in logs of some sort (like order.events). Where do you see it in the Admin?

I don’t see any triggers for it in the admin so reached out here in case I was missing something

@paul_n Hey! It’s available within the order admin page near the order risk section.

The data is also available via the admin URL /admin/orders/xxx/transactions.json:

I’ve taken a snippet of the below so you can see the path to the data:

I think it’s the payment_method_details.card.three_d_secure.authenticated

{
	"transactions": [{
		"kind": "sale",
		"gateway": "shopify_payments",
		"status": "success",
		"receipt": {
			"charges": {
				"data": [{
					"payment_method_details": {
						"card": {
							//...
							"brand": "mastercard",
							"three_d_secure": {
								"authenticated": true,
								"authentication_flow": "challenge",
								"electronic_commerce_indicator": "02",
								"exemption_indicator": null,
								"result": "authenticated",
								"result_reason": null,
								"succeeded": true,
								"transaction_id": "XXXXX",
								"version": "2.2.0"
							},
						},
						"type": "card"
					},
				}],
			},
		},
	}]
}```

Oh interesting. That’s the REST API, but in GraphQL I’m guessing that’s in the field called receiptJson on a transaction. If so, you would likely need to parse that json with Run code. But you could start by using Log Output to see if the structure matches that.

Thanks, we’ll check this out and come back to you!

receiptJson is the correct variable. It can be null as I’m seeing in my nest shop