=== ai TipJar ===
Contributors: fragbait, Tony Arcus
Tags: donations, payments, stripe
Requires at least: 5.8
Tested up to: 7.1.4
Requires PHP: 8.0
Stable tag: 1.0.10
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A floating tip jar and an [aitipjar] shortcode. Tips go to a category you choose, and Stripe Checkout takes the payment.

== Description ==

AI Tip Jar adds a floating tip jar icon and an `[aitipjar]` shortcode. Each tip is assigned to a category you define. Stripe Checkout takes the card payment. Secret keys stay on the server.

= Shortcode =

* `[aitipjar]`
* `[aitipjar category="general"]`
* `[aitipjar category="general" amounts="5,10,20"]`
* `[aitipjar label="Buy us a coffee"]`

The shortcode works while the floating icon is turned off.

== Installation ==

1. Upload the `aitipjar` folder to `/wp-content/plugins/`.
2. Activate **AI Tip Jar** through the Plugins screen.
3. Open **AI Tip Jar** and add your Stripe secret key and webhook secret.
4. Turn on **Show the floating tip jar**, or place `[aitipjar]` on a page.

The Stripe webhook URL is `/wp-json/aitipjar/v1/stripe/webhook` for the event `checkout.session.completed`.

You can set `AITIPJAR_STRIPE_SECRET_KEY` and `AITIPJAR_STRIPE_WEBHOOK_SECRET` in `wp-config.php`. Those constants override the keys saved in Settings.

== Changelog ==

= 1.0.10 =
* Published build with the ai TipJar name on the Plugins page and admin menu.

= 1.0.9 =
* Plugins screen and admin menu name are ai TipJar.

= 1.0.8 =
* Plugins screen adds a Settings link beside Deactivate.

= 1.0.7 =
* Dashboard → Updates uses the tip jar icon from img.

= 1.0.6 =
* Support email on the dashboard: linux@ai.net.nz.

= 1.0.5 =
* Plugin site link is https://ai.net.nz/project/aitipjar/.

= 1.0.4 =
* Copyright notice on the dashboard under Setup, with the GPL-2.0-or-later license and the support page.

= 1.0.3 =
* Check https://ai.net.nz/aiplugin/aitipjar.json for a newer version and install the zip published there.

= 1.0.2 =
* Stripe admin tab with setup steps for the United States, New Zealand, and other countries, plus Stripe’s country list.

= 1.0.1 =
* Optional email under the name, and a newsletter tick box that Settings can show or hide.

= 1.0.0 =
* First release. Floating tip jar, shortcode, tip categories, and Stripe Checkout.
