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
Find Global Growth Opportunities For Your Business with Shopify AcademyLearn how to exp...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025