iPhone and the Apple Pay shortcut
Use Exp Planner on an iPhone today from the Home Screen, and let a Shortcut write down every Apple Pay purchase, step by step.
The iPhone app is on its way. Until it’s out, the web app works well on an iPhone.
Put it on the Home Screen
- Open the web app in Safari and sign in.
- Tap Share (the square with an arrow) → Add to Home Screen → Add.
- Open Exp Planner from its new icon. If it asks you to sign in again, do it there.
It opens in its own window, without Safari’s bars, and tapping into a field doesn’t zoom the page. Notifications only work from the Home Screen app: turn them on there in Settings → Notifications (see Offline and notifications).
Write down Apple Pay purchases with a Shortcut
The Shortcuts app on the iPhone can run an automation after every Apple Pay payment. It sends the amount, the shop and the card to Exp Planner, and the purchase appears in Transactions, marked to review. When you import that statement later, the bank’s line takes its place.
Set it up on the iPhone itself, so you can paste the token straight into the Shortcut.
1. Make a token
- In Exp Planner, open Settings → Apple Pay shortcut.
- Under New token, give it a Name, to tell your devices apart (“iPhone” is filled in), and choose the Account to use when the card’s name doesn’t match any account.
- Tap Make a token.
- Under Your new token, copy the token and the Address. The token is shown only now: if you lose it, make another. Then Hide the token.
A token can only add purchases. Nothing can be read with it. You can have up to five, counting the ones the Android app makes for Google Wallet, and Revoke any of them in the same place.
2. Make the automation
In the Shortcuts app on the iPhone (iOS 17 or later):
- Automation → New Automation → Transaction. Pick the cards to follow, choose Run Immediately, then Next → New Blank Automation.
- Add the action Get Contents of URL and set the URL to the address you copied.
- Tap the arrow to show more, then set:
- Method: POST
- Headers:
Authorization=Bearer, a space, then your token - Request Body: JSON, with three Text fields:
amount→ Shortcut Input › Amountmerchant→ Shortcut Input › Merchantcard→ Shortcut Input › Card or Pass
- Optional: add Get Dictionary Value for
messagefrom Contents of URL, then Show Notification with it. After each payment you’ll see “12.40 EUR at Mercadona added to Revolut, to review.”
To check the set-up before you pay, run the automation by hand: it says “It works. No purchase came with this run: pay with Apple Pay to add one.”
3. Try it
Pay with Apple Pay. The purchase is added within seconds, in Needs review: payee Mercadona, −€12.40, on the account the card points to, with the note “Apple Pay · Revolut Visa”. If Exp Planner is already open, it shows after a refresh. Give it a category and it’s done.
Good to know:
- Which account: the one whose name is in the card’s name (“Revolut” for “Revolut Visa”), otherwise the one chosen for the token, otherwise your first account on budget. Accounts whose Adding switch is off (Settings → Accounts → Visibility) are skipped.
- Amounts are read as Wallet writes them in your phone’s region: “€12.40”, “12,40 €”, “1 234,50 zł”. A minus is a refund: it comes in as money in, in the category of your last purchase from that shop. Other currencies are converted at the day’s rate, and the original amount is kept.
- Limits: 30 purchases an hour and 200 a day per token.
- Away from Wi-Fi, Shortcuts needs mobile data to send the purchase.
- Importing the statement later: the bank’s line replaces the purchase when it’s on the same account, within three days, and the amounts are within 1% or €0.50. See Import from your bank.
What happens if…
| The notification says | What to do |
|---|---|
| “This token was revoked or never existed. Make a new one in Settings → Apple Pay shortcut.” | Make a token, and paste it into the Authorization header. |
| “The token is missing. Copy it again from Settings → Apple Pay shortcut.” | The header is empty or isn’t Bearer and the token. |
| “Couldn’t read the amount. Check the Shortcut sends Amount.” | Set amount to Shortcut Input › Amount. |
| “Too many purchases from this Shortcut just now. Add this one in the app.” | Over the limits above: add it with Quick add. |
| “Couldn’t get the USD rate. Add it in the app.” | No rate for that currency today: add it with Quick add. |
| “Add an account in Exp Planner first.” | Add an account in Settings → Accounts. |
If the automation runs twice for one payment, the purchase is added twice: delete one in Transactions.