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

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

== Description ==

Your customer books an appointment, and Bookly's confirmation step 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.
* **Cancelled bookings clean themselves up.** If an appointment is cancelled or rejected,
  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 Bookly free and Bookly Pro =

* The `[bookly-form]` shortcode
* The Bookly Gutenberg block
* The Bookly Elementor widget

= Your API key never leaves your server =

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

= Good to know =

If a service or form has a final step URL, or you take payment through WooCommerce,
Bookly sends the customer to another page instead of showing its confirmation step, so
there is nowhere to show the buttons.

== Frequently Asked Questions ==

= Which bookings get a pass? =

Approved bookings, unless you choose otherwise. Bookly accepts a booking before it is
necessarily confirmed: services that require approval come back as pending, and
waiting-list entries come back as waitlisted. 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 and moves to the expired section of the customer's wallet.
This covers cancelled and rejected bookings, whether the change comes from you or from
the customer's own cancel link. Bookly does not tell other plugins when a status changes,
so this is checked every ten minutes rather than instantly.

= Can the same booking create two passes? =

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

= I have several appointments in one cart. =

One pass is issued, for the first appointment in the cart.

= 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.

== Changelog ==

= 1.0.0 =
* First release. Verified against Bookly 28.1.
* Support tab: send your name, email and a message to the AddToWallet team from wp-admin.
* The Settings tab shows your live credit balance, with a warning when it reaches zero.
