Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi all
I need to check which payment method is being used at checkout using flow. At the moment i am just trying to tag orders that use Apple Pay, Google Pay or another "digital wallet".
The flow is not working having tried the 2 options below. The wallet is always "empty" =, but in the transaction the wallet shows as apple pay. Is there another variable i should be using for this?
"wallet"=>{"apple_pay"=>{"type"=>"apple_pay"}, "dynamic_last4"=>"0000", "type"=>"apple_pay"}}, "type"=>"card"}
See screenshot for set-up I have used.
Parent Transaction / Payment Details / Card Payment Details / Wallet =
Payment Details / Card Payment Details / Payment Method Name = card
and also the non parent transaction option.
TYIA
Solved! Go to the solution
This is an accepted solution.
I don't think you want parentTransaction. Card Payment Details is obviously details related to the card, which isn't something like "Apple". If you can't tell what value a field has, you use Log output action to print it out on the workflow run page.
Most likely you want transaction / formattedGateway, transaction / gateway, or just order/paymentGatewayNames . If you print out that value using Log Output, you'll see what value to use to match Apple Pay.
Thank you Paul, i have tried logging the output as i didnt know about this feature. I have tried the ones you suggested above, however even when the user pays using Apple Pay, it shows as Shopify Payments. In the transaction details, the only place "Apple" appears is under wallet, but in Flow the wallet details are always returned empty. Im not sure if this is an issue or the parameter is just not available in flow at this point.
This is an accepted solution.
where exactly you put those string of code in the block, would you mind share a screenshot of the flow job?
This was the log output. Ive deleted it now.
{% for transactions_item in order.transactions %}
{{transactions_item.paymentDetails.CardPaymentDetails.wallet}}
{% endfor %}
This was the variable
transactions_item.paymentDetails.CardPaymentDetails.wallet
Thank you, in my case I needed to detect bank transfer, I was successful with this
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024