Wallet Passes in Laravel: Spatie Package or Hosted Platform?
Shakewell ·
If you want an Apple Wallet or Google Wallet pass to come out of a Laravel application, you have three routes: build it from the platform documentation, use a package, or use a hosted platform. This post compares the last two, and describes the first so you know what the package is saving you.
One declaration before we start. We build Laravel applications, and we also run Shakewell Wallet, a hosted platform for wallet passes. That is our own product, so read the platform sections with that in mind. The package is Spatie’s, and we use it as the honest alternative. Platform facts below were checked on the Apple and Google developer sites on 29 November 2026.
What Spatie’s laravel-mobile-pass does
laravel-mobile-pass is an open-source package from Spatie, made in collaboration with Dan Johnson and released under the MIT licence. Its documentation, which we read on 29 November 2026 (latest release 1.12.0), says you can generate passes for Apple Wallet and Google Wallet, including boarding passes, event tickets, coupons, store cards, membership cards and gift cards, and push updates to passes you have already handed out.
What it documents:
- Passes are defined in PHP. A builder per pass type: for example
StoreCardPassBuilderfor an Apple loyalty card andLoyaltyPassBuilderfor a Google one. You set fields such as a balance, a member name and a tier, then save. - Google’s class and object model is kept. You declare a loyalty class once per programme, then create an object per member.
- Delivery.
addToWalletUrl()returns a link, the model can be returned from a controller, wrapped in a QR code, or attached to a mailable. For Apple the email route attaches the.pkpassfile. Google passes are not files, so that route is Apple-only. - Updates. On Apple you call
updateField()and can set achangeMessageso the phone shows a notification. On Google you change the pass content and save, and the package patches the object through the Wallet API. Update pushes can run on a queue. - Requirements. PHP 8.4+, Laravel 13.23+, the zip extension, and membership of the Apple Developer Program for Apple passes.
- Also documented. Pass relevance by date and location on Apple, expiring passes, testing helpers, events, and a callback endpoint that verifies Google’s save and remove notifications.
There is a live demo where you can generate every pass type and push a live update to your phone, and its source is public. That is a good way to judge it before you commit.
What the package does not describe is a card designer for non-developers, a sign-up page, till or ecommerce connectors, or a reporting dashboard. That is not a criticism. It is a package for developers, and it does the part it sets out to do.
What building it yourself involves
Whether you use the package or write it all, someone has to do this work. The package removes the code, not the accounts.
Apple
- An Apple Developer Program account. Passes are signed under a Pass Type ID registered in Certificates, Identifiers & Profiles.
- A Pass Type ID certificate. You generate a certificate signing request, create the certificate for your pass type identifier, and export it for your server.
- Signing. A pass is a bundle with
pass.json, images and a manifest of file hashes, signed with a detached signature and zipped to a.pkpassfile. Apple notes the pass type identifier and team identifier inside the pass must match the signing certificate. - An update web service. The pass carries a
webServiceURLand anauthenticationToken. Your server has to register devices, store the mapping between passes and devices, return the serial numbers of changed passes, and serve the new pass. Apple requires HTTPS in production and suggests storing devices, passes and registrations in three tables. - Pushes through APNs. When a pass changes, your server sends an empty push to each registered device, using the same certificate and private key that signed the pass. Apple notes this works only in the production environment.
- Certificate expiry. Apple says an expired certificate means you can no longer sign new passes or send updates to existing passes, although installed passes keep working. A revoked certificate is worse, because passes stop functioning properly.
- An issuer account in the Google Pay & Wallet Business Console, plus a Google Cloud project with the Wallet API enabled and a service account key.
- A class and objects. The class is the programme, and each member’s card is an object.
- Signed save links. The Add to Google Wallet link is
https://pay.google.com/gp/v/save/followed by a JWT signed with your service account key. Google says the safe length of an encoded JWT is 1,800 characters, so a long object can need a different approach. - A review. A new issuer starts in demo mode, with passes limited to certain users. You complete a business profile, request publishing access and wait for the Google Wallet team to approve it.
Google’s demo mode is enough for testing with a few accounts. The effort is in running it for real customers: renewals, retries when Apple or Google is unreachable, and someone to call when a pass does not arrive.
What the package takes off your hands, and what it leaves you
| Job | Spatie package | Hosted platform such as Shakewell Wallet |
|---|---|---|
| Build and sign Apple passes | Handled in code. You supply the certificate. | Handled. Shakewell Wallet signs with its own Apple certificate. |
| Apple update service and APNs | Handled by the package’s routes and jobs. You host and monitor them. | Handled. |
| Google classes, objects and links | Handled through builders and the Wallet API. You hold the issuer account and key. | Handled. |
| Certificate renewal | Yours. | Handled. |
| Card designer for staff | Not described. You design in code. | Visual builder with a live preview in both wallets. |
| Sign-up and distribution pages | You build them, with the link, QR and email helpers. | Hosted sign-up pages, QR codes and links. |
| Till and ecommerce connections | You build them. | Shopify, Shopify POS and Square connect directly. Other connectors are on the integrations page, and anything else goes through the API. |
| Reporting | You build it from your own data. | A dashboard for sign-ups, active cards and push delivery. |
| Where the data lives | Your database. | The platform’s database, hosted in Sydney. |
| Support | Your team. | The platform team. |
| Licence and cost | MIT licence. The cost is developer time and hosting. | Published plans, including a free plan. See the pricing page. |
A few of those need a note. Shakewell Wallet’s connectors differ in status, for example the WooCommerce plugin is listed as coming soon and Zapier is invite-only, so check the integrations page for the one you need. And the package’s Apple signing still needs your own Developer Program account, which Spatie’s requirements page states.
When a hosted platform is the cheaper path
The package costs nothing to install, but the time costs money. A platform tends to be cheaper when:
- The programme is a loyalty or membership card, not a one-off pass tied to your own models. The card builder, sign-up pages, scan page and till connections are the work, and they are the part a package leaves to you.
- Non-developers will run it. If marketing or the shop manager changes the card, a dashboard beats a pull request.
- You do not want to own certificates and update plumbing. Someone has to carry the pager for the renewal date and the update service.
- A till or store system has to follow the card. Connectors that already exist are less to build and maintain.
The sign-up page above is the sort of thing you would otherwise build and host yourself. The history below is the kind of audit trail you would otherwise design.
When the package is the right call
A package is the right answer in plenty of cases, and we would rather say so:
- The pass belongs to your product. Event tickets, boarding-style passes or entry passes created by your own checkout, from your own models, with your own rules.
- Data should stay in your database. Nothing leaves your infrastructure except what goes to Apple and Google.
- You are already on PHP 8.4 and Laravel 13.23 or later. If you are not, an upgrade comes first. We do that kind of Laravel development and framework upgrade work.
- Your team can run it. Someone owns the Apple account, the Google issuer account, the queue workers and the renewal date.
- There is no staff-facing card design. If passes are generated, never designed, a builder is wasted money.
A mixed approach also works. Some teams use a platform for the customer-facing loyalty card and the package for event passes inside their own system, because they are different problems.
If you are weighing building passes into a wider application, our custom software development work covers that, and digital wallet passes describes how we approach issuing them from your own system. For the product itself, see Shakewell Wallet and what it connects to.
Sources: Spatie laravel-mobile-pass on GitHub, laravel-mobile-pass documentation, Apple Building a pass, Apple Adding a web service to update passes, Apple certificates overview, Google Wallet loyalty cards: issuing passes for web, email and SMS, Google Wallet requesting publishing access and Shakewell Wallet, checked 29 November 2026.
Common questions
Is there a Laravel package for Apple Wallet and Google Wallet passes?
Yes. Spatie maintains laravel-mobile-pass, an MIT-licensed package that generates passes for Apple Wallet and Google Wallet and can push updates to passes already issued. Its documentation lists PHP 8.4+ and Laravel 13.23+ as requirements.
Do I need an Apple Developer account to issue Apple Wallet passes?
If you sign the passes yourself, yes. Apple's pass type certificates come from an Apple Developer Program account, and Spatie's documentation says the same. A hosted platform that signs passes with its own certificate, such as Shakewell Wallet, removes that requirement for you.
Does Google Wallet need approval before passes go live?
Yes. A new Google Wallet API issuer account starts in demo mode, where passes can only be issued to limited users. You complete a business profile and request publishing access, and the Google Wallet team reviews it.
What happens if the Apple pass certificate expires?
Apple's documentation says passes already on devices keep working, but you can no longer sign new passes or send updates to existing ones. Put the expiry date in a calendar and treat renewal as a scheduled task.
Is Shakewell Wallet the right choice for a Laravel app?
It is our own product, so we are not neutral. It suits teams that want a card builder, sign-up pages and till connections without running the signing and update plumbing. It is not the better choice when passes are tied closely to your own models and you want everything in your codebase. See the product page.