Log Apple Pay purchases automatically on iPhone
In Shortcuts, create an automation with the Wallet trigger (called Transaction on iOS 18 and earlier), add TrackExpenses' Import Wallet Transaction action, and fill its Amount, Merchant and Card fields from the trigger. From then on, each purchase you pay by tapping that card lands in your ledger with the shop's name, a category and the right account, without opening the app.
What you need
- An iPhone with at least one payment card in Wallet. Apple Pay depends on your country and your bank; if you can pay with your iPhone in a shop, the card is there.
- TrackExpenses, opened at least once. Until then the action has no ledger to write to and skips the purchase, saying so.
- Five minutes in the Shortcuts app.
Apple Pay imports are free and unlimited. The free allowance of 10 automatic imports a month applies to bank SMS and email, not to Wallet purchases.
Step 1: create the Wallet automation
On iOS 27, open Shortcuts, go back to Library, choose Automation and tap +. If Describe a Shortcut opens, tap Editor. In the actions panel, tap Automation and choose Wallet under Apps ("When I tap a Wallet Card or Pass"). The trigger reads "When Any Card is tapped". Tap Any Card, choose the cards to watch and tap Done. Expand the trigger with its blue arrow: leave Categories and Merchants on Any, keep Automation on, and leave Notify off unless you want Shortcuts to tell you each time it runs.
On iOS 26, open the Automation tab, tap + (New Automation if you have none yet) and choose Wallet. On iOS 18 and earlier the same trigger is called Transaction. Under When I tap, choose at least one card. Choose Run Immediately rather than Run After Confirmation, which is selected at first, leave Notify When Run off, and tap Next. Choose Create New Shortcut under Get Started (New Blank Automation on iOS 18). Don't pick a ready-made TrackExpenses tile: none of them receives the purchase.
Step 2: add the TrackExpenses action
Search for Import Wallet Transaction and add it. In the editor it reads "Import Amount at Merchant", with a Card field and Show When Run under its arrow. Its three fields start empty and never fill themselves in.
Step 3: fill the fields from the trigger
On iOS 27, tap Amount, then Select Variable in the bottom bar, and tap Transaction directly below the trigger. Tap the Transaction you inserted and choose Amount from its Get list. Do the same for Merchant, choosing Merchant, and for Card, choosing Card or Pass, which is the card's name as Wallet shows it.
On iOS 26 and earlier, tap Amount → Select Variable → Shortcut Input, tap Shortcut Input and choose Amount. Repeat for Merchant and for Card (Card or Pass).
Finally, expand the action with its arrow and switch off Show When Run, so it never stops to show you its result. Save the automation.
iOS 27, screen by screen
The real Shortcuts screens on iOS 27.2, captured on a simulator. A simulator has no payment cards; on your iPhone, the Cards list shows yours beside Any Card.
Choose Wallet
In Shortcuts, go to Library → Automation → +, tap Automation in the actions panel and choose Wallet under Apps.

Pick your cards
Tap Any Card and choose your cards. Expand the trigger: Automation stays on, Notify can stay off.

Add the import action
Search for Import Wallet Transaction and add it. Amount and Merchant are still empty.

Choose the purchase
Tap Amount, then Select Variable, and tap Transaction right below the trigger.

Take its amount
Tap the Transaction you just inserted and choose Amount. Fill Merchant the same way with Merchant.

Fill the card
Expand the action with its arrow. Card takes the same Transaction, set to Card or Pass.

Turn Show When Run off
Switch Show When Run off, then go back to save.

It's on
The automation now sits under Automation, switched on.

Link the card to an account
Shortcuts hands over the card's name, such as "ADCB Visa". TrackExpenses files the purchase on the account with that name, or on the account that lists a word from it under In bank messages. To set that, open More → SMS Auto-Import, scroll to Cards and accounts, tap the account and type the bank or card name. The match has to be unique: "Visa" alone won't pick between two Visa cards.
When no account matches, the purchase goes to the account you usually use at that shop, or else to your first account, flagged "ADCB Visa not linked". On the review screen, File under… picks the account and remembers it for that card.
Test it with a real purchase
Tap the card you chose to pay for something small. Then open More → SMS Auto-Import and look at Recent activity: the run is listed as Imported from Apple Pay, or with the reason it was skipped. No line at all means the automation never ran: check that the card is selected in the trigger and that Automation is on.
A worked example
A card called ADCB Visa sits in Wallet, and the ledger has an account with the same name. You pay 45.00 dirhams at Starbucks with your iPhone. Shortcuts hands over "AED 45.00", "Starbucks" and "ADCB Visa". Moments later the ledger shows a 45.00 expense at Starbucks under Food, on ADCB Visa, dated now, with a small Wallet mark on the row.
The category comes from the shop's name; once you file Starbucks under another category, your choice wins. An unknown shop arrives without a category and waits on the review card ("1 import needs a look").
Limits worth knowing
Only taps run it. Apple describes the trigger as running when a chosen card is tapped. A payment with the plastic card, a bank transfer or cash never passes through Wallet, so those need a bank SMS, a bank email or an entry of your own: say it, or double tap the back of your iPhone.
Refunds. A refund that the shop sends back to your card later involves no tap, so it doesn't arrive this way. Every Wallet import is recorded as spending; enter a refund as income yourself, or let your bank's alert bring it in.
Apple Cash is a Wallet card in the United States. If the trigger lists it, choose it and give TrackExpenses an account called Apple Cash.
Another currency. If Wallet hands over an amount in a currency other than your ledger's, TrackExpenses converts it at the last rate you used for that currency and flags the rate for a look. With no rate on record, the purchase waits on the review card, outside your totals, until you enter one. It never guesses a rate.
Twice, if your bank also texts you. A purchase that arrives by Wallet and by bank SMS is two entries. The second is flagged as a possible duplicate when the amount and the shop's name match within two days, and the review screen offers Remove. A bank that prints the shop differently ("STARBUCKS DXB 04") isn't caught. Use one route per card.
The date is when the automation ran: the moment you paid.
Privacy
The automation passes three values for each purchase: the amount, the shop and the card's name. TrackExpenses never reads your Wallet, your Apple Account or your bank, and it never signs in anywhere. The privacy policy has the details.
Frequently asked questions
Does it log every card payment? No. Only purchases paid by tapping a card you selected in the automation.
Does it work with Apple Watch or online Apple Pay? Apple documents only a tapped card. After your first such payment, check Recent activity: no line means that route doesn't run it.
Does it count towards the free SMS allowance? No. Apple Pay imports are unlimited on the free plan.
Can I log other expenses hands-free? Yes. Say them, or tap the back of your iPhone twice and type the amount.
Sources: Apple's Transaction trigger documentation, the Shortcuts app on iOS 27.2 with its labels read from the iOS 27.2, 26.5 and 18.0 runtimes, and TrackExpenses 1.16.0, checked in November 2026. Related: the widgets and Shortcuts feature and SMS troubleshooting.
Your money, easier to follow.
Expense Tracker: SMS & Voice for iPhone, iPad, Mac and Android.
5.0 on the App Store · 10 ratings across 7 countries · Checked 2026-11-21
App facts and free / Pro limits
Expense Tracker: SMS & Voice (TrackExpenses) is made by Mohamed Elatabany for iPhone and iPad with iOS/iPadOS 17 or later, and runs on Mac computers with Apple silicon. It is also on Google Play for Android 8 or later, where the automatic import reads the notifications of the banking and messaging apps the person picks (Notification access, no SMS permission) and the ledger stays on the phone, with no sync; a Pro purchase belongs to the store it was made in. The app is in English, Arabic, German, Spanish and Brazilian Portuguese, with a full right-to-left Arabic interface. No app account or bank login is required. Optional Shortcuts automations import supported bank SMS, bank email alerts (through Apple’s Mail app) and Wallet purchases, and a bank SMS or email can be pasted; the app does not read your Messages inbox or your email. Voice entry creates on-device drafts on compatible devices and languages. The free ledger includes unlimited manual transactions, budgets, current-period budget moves and Cover with the total unchanged, days left and spent/left amounts, budget alerts (at 80% when ahead of pace, and when over), bill reminders the morning before a repeating expense is due, historical stats, search with Spent and Income totals across every period, private iCloud sync across iPhone, iPad and Mac, 3 accounts, 2 recurring rules, 10 saved voice entries per calendar month per device and 10 successful automatic bank SMS or email imports per calendar month per device. Touching and holding the app icon offers Say an expense, New expense, Paste bank message and Ask your coach. The money coach reads the last budget month and suggests one limit. Today’s spending, a category, account balances, any named month, charts, files and typed logging are worked out on the device without using a question; open questions go to Anthropic’s Claude through the developer’s relay only after the user agrees, with the conversation so far, a summary of this month and last month and, when the model asks, totals for up to 13 months or up to 20 purchases with their date, shop, category and amount; never notes, receipts, account names or numbers, or balances (10 a month free per device). SMS alerts past the free allowance are kept but locked outside totals; upgrading to Pro adds them all, otherwise the next calendar month’s allowance releases as many as it covers. Nothing is dropped and saved history is never locked; when Pro or a trial ends, entries, accounts and repeating bills keep working. Pro adds unlimited voice entry, SMS and email imports, accounts and recurring rules, money coach challenges and more coach questions, a salary plan, forecasts, overall and per-budget daily guidance with repeating bills accounted for first, a daily budget for chosen categories optionally up to a date, what-if planning, Export & Share (CSV of any range and the full JSON backup; every export is Pro since 1.15.0), CSV import, backup restore, themes and alternate icons. Monthly and annual subscriptions and a one-time lifetime purchase are available. Spending calculations depend on your records and are not financial advice.
