=== FidelyGo ===
Contributors: fidelygo
Tags: loyalty, loyalty program, rewards, woocommerce, points
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

Your FidelyGo loyalty card on your website: a "My loyalty card" button, and points credited for every WooCommerce order.

== Description ==

[FidelyGo](https://fidelygo.fr) is the digital loyalty card for local businesses: restaurants, cafés, bakeries, shops and salons. Customers earn points or stamps in store by scanning a QR code. This plugin brings the same loyalty program to your website.

* **"My loyalty card" button** on every page: customers join your program or check their balance in one click.
* **WooCommerce orders credited automatically**: every paid order counts as one visit, exactly like in store (same points or stamps rule, same daily limit, welcome bonus on the first order). Each order is only counted once, and a note is added to the order.
* **One-click connection**: no API key to copy and paste. Click "Connect my FidelyGo account", log in to FidelyGo and authorize the site.

Requires a FidelyGo account on the Business plan. The plugin interface is available in English and French.

= Extension FidelyGo (français) =

Affichez le bouton « Ma carte de fidélité » sur votre site et, avec WooCommerce, créditez automatiquement un passage à vos clients pour chaque commande payée. Connexion en un clic, sans clé à copier. Nécessite un compte FidelyGo au plan Business.

== External services ==

This plugin connects to the FidelyGo service (https://fidelygo.fr), operated by FidelyGo, to run your loyalty program. It is required for the plugin to work.

* **When you connect the site** (Settings › FidelyGo › Connect): you are redirected to fidelygo.fr to authorize the site, with your site address. FidelyGo then sends back a one-time code, which the plugin exchanges for an access key (server to server).
* **For every paid WooCommerce order**: the order number and the customer's billing email, first name and phone number are sent to FidelyGo to credit the customer's loyalty card.
* **"Test the connection" and "Disconnect"**: the plugin calls FidelyGo with the access key. Disconnecting revokes the key.
* **On the site's pages**, when the button is enabled: the button is displayed by a script included in the plugin, and no data is sent until a visitor clicks it. Clicking the button opens the business's loyalty page on fidelygo.fr, where the visitor can join the program or check their balance.

Terms of use: https://fidelygo.fr/cgu
Privacy policy: https://fidelygo.fr/confidentialite

== Installation ==

1. Install the plugin from Plugins › Add New (search "FidelyGo"), or upload the .zip file, then activate it.
2. Go to Settings › FidelyGo and click "Connect my FidelyGo account".
3. Log in to FidelyGo and click "Authorize". That's it.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

No. Without WooCommerce, the plugin only shows the "My loyalty card" button.

= When are points credited? =

As soon as the order is paid (status "Processing" or "Completed"). A note is added to the order.

= How many points does an order earn? =

One order counts as one visit, whatever the amount: the points per visit of your program, or one stamp. The daily visit limit you set in FidelyGo also applies online.

= Where do I find FidelyGo? =

Create your account at https://fidelygo.fr (one-month free trial).

== Screenshots ==

1. Settings › FidelyGo: one-click connection.
2. Connected: button settings and WooCommerce status.
3. The "My loyalty card" button on the site.

== Changelog ==

= 1.0.0 =
* First release: one-click connection, "My loyalty card" button, WooCommerce orders credited.
