=== AddToWallet for Amelia Bookings ===
Contributors: addtowallet
Tags: booking, wallet, apple wallet, google wallet, amelia
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.9.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn every Amelia booking into an Apple or Google Wallet pass, so your customers keep
their appointment on their phone.

== Description ==

Your customer books an appointment, and the confirmation screen offers them an **Add to
Apple Wallet** or **Add to Google Wallet** button. One tap, and the appointment sits on
their phone next to their boarding passes and event tickets.

No app to install, nothing for you to design, and nothing for your customer to remember.

= Why it helps =

* **Fewer no-shows.** The appointment is on their lock screen, not buried in an email.
* **One tap to save.** No account, no download, no forms.
* **Always current.** Change a booking and the pass in their wallet changes with it.
* **Cancelled bookings clean themselves up.** If an appointment is cancelled, rejected or
  marked a no-show, the pass expires by itself, so nobody turns up for an appointment
  that is not happening.

= Both wallets, every time =

Apple and Google are both offered on every booking, with the one matching the customer's
device shown first. Somebody may well book on a laptop and carry a phone that uses the
other wallet, so neither is ever hidden.

= Works with every Amelia widget =

* Step-by-step booking
* Booking button and modal
* Catalog and catalog booking
* Events and events list booking

= Your API key never leaves your server =

The key is stored in WordPress and is never sent to the browser. The confirmation screen
sends only a booking ID and Amelia's own per-booking token, and the appointment details
are read from Amelia's tables on your server. A visitor cannot forge a pass, and cannot
create one for somebody else's booking.

= Good to know =

If you take payment through WooCommerce, or any gateway that sends customers away to a
checkout page, Amelia never returns them to its confirmation screen, so there is nowhere
to show the buttons.

== Frequently Asked Questions ==

= Which bookings get a pass? =

Approved bookings, unless you choose otherwise. Amelia accepts a booking before it is
necessarily confirmed: services that require approval come back as pending, and
waiting-list entries come back as waiting. A pass for those could put an appointment in
somebody's wallet that never happens, so they are left off by default.

= What happens if a booking is cancelled? =

The pass is marked expired straight away and moves to the expired section of the
customer's wallet. This covers cancelled, rejected and no-show bookings, whether you
change one attendee or the whole appointment, and whether the change comes from you or
from the customer's own cancel link.

= Can the same booking create two passes? =

No. The pass is stored against the booking ID, so refreshing the confirmation screen
returns the pass that already exists rather than creating another one.

= Do I need an AddToWallet account? =

Yes. Passes are created through your AddToWallet account, and each pass uses one credit.
If your balance runs out, bookings carry on as normal but no pass is created, so that is
the first thing to check if passes stop appearing.
