Skip to content
Until end of January: 90 days free
Wallet & tech

Build an Apple Wallet Pass Yourself: Certificates, Server and Real Effort

Building your own wallet pass is not rocket science, but it is not an afternoon job either. This guide shows which accounts, certificates and servers you need for Apple Wallet and Google Wallet, how the pieces fit together, and when building it yourself actually makes sense for a shop.

mystamp editorial teamUpdated: 9 min readAuf Deutsch lesen

Quick answer

To build an Apple Wallet pass you need a paid Apple Developer Program membership, a Pass Type ID with its certificate, and code that bundles pass.json, images and manifest.json into a signed .pkpass file. Updates and lock-screen notifications require an HTTPS web service connected to APNs. For Android you also need an issuer account and the Google Wallet API. Expect several weeks of development plus ongoing maintenance.

Key takeaways

  • Two platforms, two systems: Apple uses signed .pkpass files, Google uses classes and objects via a REST API.
  • Apple requires certificates: Without the Apple Developer Program, a Pass Type ID and a valid certificate you cannot sign a pass.
  • The server is the real work: Stamp counts, notifications and device registrations run through your own web service, which must stay online.
  • A static pass is quick to build; a stamp card with scanner, updates and analytics is a project of several weeks.
  • Most shops are better off buying than building; DIY suits companies with their own developers and special requirements.

Building an Apple Wallet pass means two things: creating a signed file that the iPhone displays as a card, and running a server that keeps that card up to date. For Android, the Google Wallet API adds a second system that works in a completely different way. Your first static pass will be on your phone quickly. A real stamp card with updates, notifications and a scanner, however, is a software project that needs ongoing care.

This guide walks through the technology step by step: accounts and certificates, the pass file, the update server, Google Wallet, effort and common mistakes. By the end you will know whether to build it yourself or use a ready-made solution. If you first want to understand what a pass actually is, start with our guide to the wallet pass.

What you need to build a wallet pass

Before writing any code you need developer access at Apple and Google plus some infrastructure. The table shows what each side requires.

Component Apple Wallet Google Wallet
Account Apple Developer Program (paid, annual) Issuer account in the Google Pay & Wallet Console (free)
Identifier Pass Type ID, e.g. pass.com.examplecafe.loyalty Issuer ID and class ID
Keys Pass Type ID certificate plus Apple WWDR intermediate certificate Service account key in a Google Cloud project
Format .pkpass (ZIP with pass.json, images, manifest.json, signature) Class and object as JSON via a REST API
Adding to the wallet Serve the file via link, email or QR code Signed JWT in an “Add to Google Wallet” link
Updates Your own HTTPS web service plus push via APNs Update the object via API, Google syncs the change
Go-live Usable straight away Demo mode, publishing access must be requested

On your side you also need a server with HTTPS, a database for cards and stamps, a way to stamp (scanner app or web app) and an admin area to manage cards and rewards.

Step 1: Set up the Apple developer account and Pass Type ID

Everything starts with the Apple Developer Program. Membership costs 99 US dollars per year or the equivalent in local currency. To enrol as a company (for example a GmbH in Germany or Austria) you need a D-U-N-S number; as an individual your Apple ID is enough.

Then:

  1. Register a Pass Type ID: Under “Certificates, Identifiers & Profiles”, register an identifier in the format pass.<reverse-domain>.<name>.
  2. Create a certificate signing request: Generate a CSR with Keychain Access on a Mac or with OpenSSL on any other system.
  3. Download the certificate: Apple issues the Pass Type ID certificate. Export the certificate and private key for your server.
  4. Get the WWDR intermediate certificate: The signature also needs Apple’s Worldwide Developer Relations intermediate certificate.
  5. Note the expiry date: The certificate expires. If it lapses unnoticed, you can neither sign new passes nor push updates.

Rule of thumb: Guard the private key like a password. Anyone who holds it can sign passes in your name.

Step 2: Build and sign the .pkpass file

A .pkpass file is technically a ZIP archive with a fixed structure. For a stamp card you use the storeCard pass style. Apple also offers coupon, eventTicket, boardingPass and generic.

What goes into the file

  • pass.json: Required keys such as formatVersion, passTypeIdentifier, teamIdentifier, serialNumber, organizationName and description, plus fields for stamp count and reward, the barcode (e.g. a QR code) and colours.
  • Images: At least icon.png; for a stamp card logo.png and strip.png are useful too, each in several resolutions (@2x, @3x).
  • manifest.json: A list of every file with its SHA-1 hash.
  • signature: A PKCS#7 signature of manifest.json, created with your certificate and the WWDR intermediate certificate.

Serving and testing

Your server delivers the file with the MIME type application/vnd.apple.pkpass. When an iPhone opens the link, a preview with “Add” appears. Open-source libraries for Node.js, PHP, Python and other languages handle packing and signing; check that they are still maintained before relying on one.

The most common stumbling block is a wrong hash in the manifest or a missing intermediate certificate. The iPhone then shows a terse error or nothing at all. Our guide on what to do when a wallet pass is not working helps here.

Step 3: Build the update server

So far you have a static card. A stamp card needs its stamp count to change, and that requires a web service. Apple documents the interface in its Wallet Passes documentation. Your server has to provide several endpoints:

Endpoint Purpose
Register (POST) The iPhone registers a device ID and push token for a pass
Unregister (DELETE) The customer has deleted the card
Get updated passes (GET) The iPhone asks which serial numbers changed since its last check
Get pass (GET) The iPhone downloads the current .pkpass file
Log (POST) The iPhone reports errors, invaluable when debugging

When a new stamp is added, the flow looks like this: your database stores the new count, your server sends an empty push through the Apple Push Notification service (APNs) to every registered device, and the iPhone checks in and downloads the new pass. Adding a changeMessage to the changed field also shows a notification on the lock screen, such as “Just 2 stamps until your free coffee”.

That is how wallet push notifications work: there is no open messaging channel, only a change to the card that triggers a notification. For details see our guide to updating a wallet pass.

What else the server must handle

  • Stay online over HTTPS with a valid TLS certificate. If it goes down, stamps stop arriving.
  • Check authentication: Every pass carries an authenticationToken that is sent with each request.
  • Enable stamping: A scanner interface that reads the QR code and books the stamp, including protection against double scans. See scanning a wallet pass for how this works in practice.
  • Store locations: The locations key lets the pass show a hint near your shop. More on that in wallet location notifications.

Step 4: Connect the Google Wallet API

For Android customers you build the card a second time, on a different principle. The Google Wallet API uses classes (the template, e.g. “Stamp card Café Lindenhof”) and objects (each customer’s individual card). For loyalty cards you use LoyaltyClass and LoyaltyObject.

  1. Create an issuer account in the Google Pay & Wallet Console.
  2. Set up a Google Cloud project, enable the Google Wallet API and create a service account with a key.
  3. Define the class: logo, colours, programme name, fields.
  4. Create objects and give each customer an “Add to Google Wallet” link containing a JWT signed with the service account.
  5. Update via the API: When the stamp count changes, update the object. Google pushes the change to the phone, so you need no push service of your own.
  6. Request publishing access: New accounts are in demo mode. Only after Google approves can real customers save the card.

Google charges nothing for the account or the API and provides code samples in several programming languages. The effort lies elsewhere: you maintain two data models, two designs and two update paths side by side. Read more about the Android side in our guide to Google Wallet for business.

How much effort is it really?

The numbers depend heavily on experience and ambition. The table below is a rough estimate based on typical projects, not a guarantee.

Stage Scope Rough development effort
Static Apple pass One signed card without updates 1–3 days
Apple stamp card Update server, APNs, simple scanner 2–4 weeks
Apple + Google Second data model, JWT links, API updates an extra 1–3 weeks
Ready for daily use Admin area, staff logins, analytics, win-back messages several more weeks

Worked example

Suppose a Vienna agency builds the “Apple + Google” stage with a simple admin area for a bakery with three branches. At around 30 developer days and an assumed day rate of €700, the one-off cost comes to roughly €21,000. On top come hosting, the Apple membership, certificate renewals, adjustments for new iOS and Android versions, and support whenever a card fails to arrive on a customer’s phone.

For comparison: ready-made wallet stamp cards start at €0. With mystamp you begin on the free-forever Free plan, and paid plans start at €7.50 per month (billed annually, net plus VAT). For a fuller comparison, see build vs buy a loyalty programme.

Data protection when you build it yourself

If you run wallet passes yourself, you carry full responsibility for data protection. Your server will hold device IDs, push tokens, stamp histories and possibly birthdays or email addresses.

  • Collect as little as possible: A stamp card works without names or email addresses.
  • Sign a data processing agreement (Auftragsverarbeitungsvertrag): Your hosting provider needs a contract under Art. 28 GDPR.
  • Plan deletion: When a device unregisters, the related data should be removed after a fixed period.
  • Inform customers: A privacy notice that explicitly mentions the wallet pass.

Austria applies the GDPR just like Germany; in Switzerland the revised Federal Act on Data Protection (revFADP) sets similar principles. More in our guide to wallet pass privacy. Note: this section is general information and does not constitute legal advice.

Common mistakes when building your own pass

  • Thinking only about Apple: In the DACH region a large share of your customers use Android. Without a Google Wallet version you lock them out.
  • Letting the certificate expire: Without a calendar reminder you only notice when everything stops working.
  • Changing serial numbers: Pass Type ID plus serial number identify the card. Change it and you create a new card instead of an update.
  • Treating notifications like ads: Too many change messages lead customers to switch notifications off or delete the card.
  • Forgetting the scanner: The card is only half the job. Your team needs a fast, reliable way to stamp, even with a queue at the counter.
  • Not budgeting for maintenance: iOS, Android and the APIs change. A project nobody maintains will eventually break.
  • Planning NFC too early: Contactless reading via NFC needs separate approval from Apple (Apple VAS) and from Google for Smart Tap. For a stamp card a QR code is enough.

When building it yourself pays off, and when it does not

Building your own makes sense if at least one of these applies:

  • You have an in-house development team that will run it long term.
  • The wallet pass must integrate deeply with existing systems, such as your own app or inventory software (via an API).
  • You issue very large numbers of cards and want to avoid per-customer licence costs.
  • You need features no provider offers.

For a café in Berlin, a barbershop in Munich or a bakery in Zurich that is rarely the case. What matters there is that the stamp card works today and the team never has to think about certificates. With mystamp, your customer scans the QR code at the counter, the card lands in Apple Wallet or Google Wallet, and you stamp with your own phone. Push notifications, location reminders and automatic win-back after 30 days are built in. To see which other providers exist, check the wallet pass provider comparison; the no-code route is covered in create a wallet pass.

Conclusion

Building an Apple Wallet pass is well documented and, with a developer account, a Pass Type ID certificate and some code, quick to get started. The real work comes afterwards: an update server with APNs, a second implementation for the Google Wallet API, a scanner, an admin area, data protection and maintenance. If you have a development team and special requirements, you get full control in return. For most local shops a ready-made wallet stamp card is the faster and cheaper route, leaving you to spend your time on customers rather than certificates.

Frequently asked questions

How much does it cost to build an Apple Wallet pass yourself?

The fixed cost is the Apple Developer Program membership at 99 US dollars per year, or the equivalent in local currency. On top come hosting for the update server and, above all, development time. A simple static pass takes a few days; a complete stamp card with scanner, updates and a Google Wallet version takes weeks of work, followed by ongoing maintenance.

Do I need a Mac to create a wallet pass?

Not necessarily. Creating the certificate signing request (CSR) is easiest with Keychain Access on a Mac, but OpenSSL on Windows or Linux works too. Any server can sign the .pkpass file, for example with Node.js, PHP or Python. For testing on an iPhone, opening the file via a link or email is enough.

What is a Pass Type ID certificate?

The Pass Type ID is an identifier such as pass.com.examplecafe.loyalty that you register in your Apple developer account. You then generate a certificate that your server uses to sign every .pkpass file and to send update pushes to Apple. Without a valid certificate the iPhone rejects the pass. The certificate expires after a set period and has to be renewed in time.

Is the Google Wallet API free?

Google does not charge for the issuer account in the Google Pay & Wallet Console or for using the Google Wallet API. You need a Google Cloud project with a service account. New issuer accounts start in demo mode, where only test users can save passes. To issue cards to real customers you request publishing access from Google.

How do I update a wallet pass I built myself?

With Apple, the iPhone registers with your web service. When the stamp count changes, your server sends an empty push via APNs, the iPhone checks in and downloads the new .pkpass file. With Google, you simply update the pass object through the REST API and the card in the wallet refreshes automatically.

Is it worth building wallet passes yourself for a small shop?

Usually not. A café or barbershop needs a working stamp card, not its own server with certificate management. Ready-made solutions start at €0, with mystamp for example on the free-forever Free plan. Building your own pays off if you have a development team, need deep integration with your own systems or issue very large numbers of cards.

Sources & further reading

  1. Apple Developer Program – Apple
  2. Wallet Passes – Documentation – Apple
  3. Google Wallet API – Google
  4. Art. 28 GDPR – Processor – General Data Protection Regulation

About this guide

Written by the mystamp editorial team in Mannheim, Germany. We build digital stamp cards for local shops, and our guides bring together what actually works day to day in small businesses. We back numbers and legal statements with sources and update the article when things change.

Published: 1 December 2026 · Updated: 1 December 2026 · Spotted a mistake or have a question? Write to us

Related industry guides

Free-forever plan available

A wallet stamp card without writing a line of code

mystamp handles certificates, servers and updates: set up your card for Apple and Google Wallet in about 10 minutes and stamp with your own phone.

  • Free-forever plan
  • Ready in 10 minutes
  • Back to Free any time – cards stay
  • No app needed

Try the card

Live preview: build your card in 30 seconds.

Café Sonnenschein

now

Fancy a cappuccino? Double stamps today.

Tap the card to collect a stamp

Stamps until the reward
Colour
Logo

Your logo stays on your device and is not uploaded.

Just a preview – you create your real card yourself in 10 minutes.

Even more design options in the dashboard: There you can also customise icons, font colours and background patterns – this preview only shows the basics.

Create this card for free & win regularsCreate this card for free
Launching January 2027

We go live in January 2027

Sign-up isn’t open yet – but you can be first in line. Leave your email and we’ll let you know as soon as we launch.

Your giftAll plans free for 90 days for everyone who signs up now.