How to log Apple Pay payments with Shortcuts, no app needed

Your Apple Pay payments in one list, without an app

You pay for almost everything with your iPhone, and now you'd like to know what it all came to this month. Wallet shows the latest transactions of each card as your bank sends them, but it doesn't give you a list you can keep and add up. So you build that list yourself, with the Shortcuts app that's already on your iPhone.

Every time you pay with your iPhone at a register, an automation runs and writes the date, the store and the amount as a new line in a file in your iCloud Drive. At the end of the month you open the file in Numbers and see something like this:

DateStoreAmount
11/3/26Smith's Bakery$3.80
11/3/26Grocery store$27.45
11/4/26Drugstore$8.95

This suits you if you often pay with your iPhone in stores and want a plain list that belongs only to you. You set it up once, and after that each of those payments writes itself down.

What you need

  • An iPhone with iOS 18 or later. Your version is in Settings → General → About.
  • A card in Wallet that you pay with at the register.
  • The Shortcuts app. It comes with every iPhone, and if you deleted it, it's free in the App Store.
  • iCloud Drive, because that's where the file goes.
  • Numbers, Apple's free spreadsheet app, for the total at the end of the month. Excel and Google Sheets open the file too.

How to set up the Apple Pay automation

With iOS 27, Apple changed how automations work. Up to iOS 26 you create them under Automation in the Shortcuts app. From iOS 27 on, the trigger belongs to the shortcut itself. Pick your version.

Find your version in Settings → General → About.

  1. Open the Shortcuts app and create a new shortcut. Call it something like "Apple Pay log."
  2. Tap Edit, then Automation. Pick Wallet as the trigger.
  3. Select the cards you pay with.
  4. So the shortcut runs without asking you each time, open the shortcut's settings while you edit it. Tap Privacy and turn on Allow Running When Locked.
  5. Now add the actions. They're in the next section.
  6. When you're done, tap Automation in the Shortcuts app and check that your shortcut is turned on.
  1. Open the Shortcuts app and tap Automation at the bottom.
  2. Tap New Automation. If you already have automations, tap + in the upper-right corner instead.
  3. Scroll down and tap Wallet. On iOS 18 it's called Transaction.
  4. Select the cards you pay with.
  5. Below them, pick Run Immediately and tap Next. That way your iPhone doesn't ask at every payment.
  6. Tap Create New Shortcut. On iOS 18 it's New Blank Automation. Now add the actions. They're in the next section.

Write the date, store and amount to a file

Now you tell the automation what to write down. First you build the line, then you add it to the file.

  1. Search the actions for "Text" and tap the Text action.
  2. Tap into the text field. A bar with variables appears above the keyboard. Tap Current Date there. You may have to swipe left on the bar to find it.
  3. Tap the blue Current Date field. Set Date Format to Short and Time Format to None. Then only the date goes into the file: 11/17/26 on a US iPhone, 17/11/2026 on a UK one.
  4. Type a comma. Then add Shortcut Input from the same bar.
  5. Tap the blue Shortcut Input field and pick Merchant. That's the store's name.
  6. Type another comma, add Shortcut Input once more, and this time pick Amount. Don't take Currency Amount: as text, it keeps only the whole dollars and drops the cents.

The text field now reads: Current Date, comma, Merchant, comma, Amount. The commas split the line into columns, which makes the file a CSV. Numbers, Excel and Google Sheets open that as a table. The amount arrives as text with its currency sign, like $3.80 or £3.80.

  1. Search the actions for "Append to Text File" and tap it.
  2. Enter Expenses.csv as the File Path. Turn on Make New Line, so each payment gets a line of its own.
  3. Tap Done.

You don't have to create the file first. If it doesn't exist yet, the automation creates it at your first payment.

The play button in Shortcuts won't help you test this, because it passes no payment along. Pay for something small with your iPhone instead, like a coffee, and then look at the file as the next section shows.

How much did I spend this month?

For the total, open the file in Numbers. Numbers turns the lines into a table, with a new column at each comma (Apple Support).

  1. Open Numbers, tap Browse, find Expenses.csv and tap the file.
  2. If everything sits in one column, Numbers hasn't split the lines at the commas. Tap the table, tap the Format button, then Table and Adjust Settings. On the Delimited tab, pick the comma and tap Update. Do this before you change anything in the table, because afterwards you can't adjust these settings anymore.
  3. Select the month's amounts in the third column, tap the Cell Action button at the bottom of the screen and pick the sum. Numbers shows the result at the end of your selection (Apple Support).

The file has no column names, so the first line is already your first payment. A line with four columns instead of three has an extra comma in it. Either the payment was $1,000 or more, so the amount reads like $1,234.56, or the store's name has a comma. Fix that line by hand before you add up the month.

To give each month its own file, rename the old one in the Files app at the start of the month, for example to "Expenses October.csv". At the next payment, the automation starts a new Expenses.csv. Already keep a budget in Excel or Google Sheets? Open the file there and copy the lines over.

What the automation can't do

The automation only writes down what Wallet hands it, and that's less than you'd think.

Apple describes the trigger as running whenever you tap a card you selected (Apple Support). That's the payment you can count on: your iPhone at a card reader. For Apple Pay online or in apps, and for payments with an Apple Watch, Apple promises nothing, so check your file before you rely on them. Cash and payments with the plastic card never show up. Your list holds only part of what you spend.

Every line also goes into the file unchecked. Nobody asks whether it's right, and a wrong line stays until you delete it. There are no categories either. To see what went to groceries or eating out, you add a fourth column in Numbers and fill it in yourself. Our guide to budget categories shows which ones are worth having.

Sometimes a field comes in empty, the store's name for example, and that spot in the line stays blank. An amount can also differ from your statement, because some transactions look different from the final charge (Apple). Your bank's figure is the one that counts.

In the end, everything depends on your bank. It reports each payment to Wallet, and only then does the automation run. When the report is late, the automation can give up. In Apple's developer forums, people describe the trigger timing out when Wallet heard about a purchase late, in one case about three hours after paying (Apple Developer Forums).

So for the full picture you still need a way to note cash and everything else. Our guide on how to track your spending shows how to keep that up.

Why is my Apple Pay automation not working?

Go through these in order:

  1. Is the payment in Wallet? Open Wallet and tap the card. If the payment isn't there, your bank hasn't reported it yet, so the automation couldn't run either.
  2. Is the card selected? Open the automation and check. A new card, after a replacement say, you have to add there yourself.
  3. Does the automation run without asking? Up to iOS 26, it needs Run Immediately. On iOS 27, check Allow Running When Locked under Privacy, and that the automation is turned on.
  4. Is the amount missing its cents? Open the automation, tap the blue field for the amount and check that Amount is picked, not Currency Amount. If a line is still wrong, add the amount by hand.
  5. Did you pay online, in an app or with your watch? Apple only describes the trigger for tapping a card. Add these payments by hand.
  6. Did payments go missing on iOS 26.3? In the tests of the team behind Kirum, turning the amount into text failed on a locked iPhone on iOS 26.3.1, and worked again from iOS 26.4.1. Install the latest iOS update.

If this is too much tinkering

The file costs nothing and belongs only to you. But it has gaps: nobody checks the lines, there are no categories, and you add up the month yourself.

Kirum, the expense tracker for iPhone that we make, uses the same Wallet trigger in Shortcuts and brings the shortcut ready-made, called "Kirum - Apple Pay." You set up the automation once, and an animated guide in the app shows you each step. After that, each payment arrives as an entry you confirm with one tap. Because you see every payment before it's saved, a wrong amount stands out right away instead of at the end of the month, and each entry goes into one of your own categories. Logging Apple Pay is free, with no bank login and no account, and your entries are stored in your own iCloud.

Wallet's limits stay the same: Kirum only gets the payments the trigger hands over, and cash you still add by hand. The setup is in our guide on how to track Apple Pay spending automatically.