=== AddToWallet for WooCommerce ===
Contributors: addtowallet
Tags: woocommerce, wallet, apple wallet, order, pass
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later

Creates an Apple Wallet order pass when a WooCommerce order is paid, and shows a
Track with Apple Wallet button on the thank-you page.

== Description ==

When a customer pays for a WooCommerce order, this plugin creates an Apple Wallet
order pass and shows a button linking to it on the thank-you page, the customer
order view, and processing/completed emails.

Your API key is stored in WordPress and never sent to the browser. Pass contents
are read from the order on the server.

= When is a pass created? =

When **Auto-create on paid orders** is on (the default once an API key is saved)
and WooCommerce reports the order as paid. Completing or cancelling the order
updates the same pass.

= Can the same order create two passes? =

No. The pass id is stored on the order, so repeats return the existing pass.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` and activate it.
   WooCommerce must be active.
2. Go to **AddToWallet** and paste your API key.
3. Set the logo. It falls back to your site icon when blank.
4. Place a test paid order and confirm the button on the thank-you page.

== Frequently Asked Questions ==

= Where do customers get the pass? =

The thank-you page, My Account → View order, and the processing/completed order
emails, once the pass exists.

= Why is there no pass on thank-you? =

Redirect payment gateways can land on thank-you before the paid hook finishes.
The page polls for up to a minute. Also check credits on your AddToWallet account.

== Changelog ==

= 1.0.0 =
* Initial WooCommerce order-pass release (Apple Wallet order layout).
