=== Pay4All WIN ===
Contributors: pay4all
Tags: contest, giveaway, sweepstake, form, multilingual
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Run online contests: build forms with drag-and-drop, share them via QR code or shortcode, and draw winners at random in one click.

== Description ==

Pay4All WIN lets you run online contests entirely from your WordPress site:

* Multilingual title and description per contest (French, German, Italian, English).
* Start date and end date per contest with automatic status (scheduled, active, ended).
* Drag-and-drop field builder with mandatory core fields (first name, last name, e-mail, address, ZIP, city, country) plus an editable question and a terms checkbox.
* Shortcodes for inline embedding and a standalone QR-code endpoint for print material.
* Random winner draw from the admin, with per-contest winner count set at creation.
* Optional confirmation e-mail to participants, admin notification per new entry, winner notification and public results broadcast.
* One entry per e-mail per contest enforced at the database level.

Optional integration:

* When **Pay4All Shop** is installed, contest participants are automatically added to the customer directory. When Pay4All Shop is not installed, Pay4All WIN works fully standalone.

== Installation ==

1. Upload the `pay4all-win` folder to `/wp-content/plugins/`.
2. Activate the plugin from the Plugins screen.
3. Go to *Pay4All WIN > Settings* to set the admin notification e-mail and default colours.
4. Create your first contest from *Pay4All WIN > Contests > Add new*.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

No. Pay4All WIN is fully standalone.

= Can I export the list of participants? =

Yes, a CSV export is available on the entries screen of each contest.

= What happens when a contest ends? =

The public form is replaced by a "Contest ended" panel; the standalone QR endpoint returns HTTP 410.

== Screenshots ==

1. Contests list.
2. Contest editor with per-language title and description.
3. Field builder.
4. Public entry form.

== External services ==

This plugin does not connect to any external service. QR codes are generated on your own server by a bundled encoder (see the Source code section below), no data is sent to any third-party server, and the Help page's "Write to support" button opens a standard mailto: link handled by your local mail client - no data flows through this plugin.

== Source code ==

The complete, non-minified source of this plugin is bundled inside the ZIP itself. Every PHP, CSS and JavaScript file is human-readable and directly editable, and no compiler, transpiler or bundler is required to work on this plugin.

The QR code encoder at `src/Lib/QrEncoder.php` is an original, from-scratch implementation of ISO/IEC 18004 (byte mode, EC level L, versions 1-9) written under this plugin's own GPL v2 license. No third-party QR library is bundled.

== Changelog ==

= 1.1.0 =
* Onglet E-mails dans les réglages : test d'envoi + éditeur d'objet et corps HTML par langue avec valeurs par défaut préremplies.
* Diffusion des résultats déportée sur un cron (lots + minutes configurables, projection 24 h en direct, avertissement au-dessus de 500/jour).
* Traductions FR/DE/IT complètes + lien « Afficher les détails » sur wp-admin/plugins.php.

= 1.0.0 =
* Initial release.
