=== Pay4All for myPOS - For WooCommerce & Pay4All Shop ===
Contributors: pay4all
Tags: mypos, payment, woocommerce, gateway, checkout
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds myPOS Virtual as a payment gateway to WooCommerce and Pay4All Shop. Free, no license, no subscription. Uses your own myPOS Configuration Pack.

== Description ==

Pay4All for myPOS adds myPOS Virtual as a payment method to WooCommerce and to the free Pay4All Shop plugin.

myPOS is a trademark of myPOS World Ltd; this plugin is an independent integration and is not affiliated with, endorsed by, or sponsored by myPOS.

Main features:

* Connects your own myPOS account by pasting your Configuration Pack (base64 blob from the myPOS merchant portal) - no OAuth, no third-party proxy.
* Every method enabled in your myPOS account shows up at checkout: cards, iDEAL, TWINT (via myPOS), IRIS, Satispay, and more depending on your store settings.
* WooCommerce integration: classic checkout, Checkout Blocks and HPOS supported.
* Pay4All Shop integration: works out of the box with form-based checkouts.
* Refunds triggered directly from the WooCommerce order screen (native WC refund flow, no custom history).
* Localized in French, German, Italian and English.
* Test / Live mode toggle with locked Test mode when no production Pack is saved.

There is no license fee, no subscription, no domain activation. Install, activate, paste your Configuration Pack, done.

== Installation ==

1. Upload the `pay4all-for-mypos` folder to `/wp-content/plugins/` (or install from Plugins > Add New).
2. Activate "Pay4All for myPOS" from the WordPress Plugins screen.
3. Open `Pay4All myPOS > Settings` in the admin.
4. Paste your Configuration Pack from the myPOS merchant portal. See "Aide myPOS" for screenshots.
5. Tick which myPOS payment methods you want to expose at checkout.
6. Optionally set default WooCommerce statuses for paid orders.

== External services ==

This plugin connects to myPOS Virtual (an external payment gateway operated by myPOS World Ltd) to process every checkout your customers submit.

What is sent, and when:

* When a customer places an order and picks myPOS at checkout, the plugin POSTs the transaction data (order ID, amount, currency, customer name / email / billing address, cart items, plus your merchant Store ID and a signature from your Configuration Pack) to https://mypos.com/vmp/checkout (production) or https://mypos.com/vmp/checkout-test (test mode).
* After payment, myPOS calls the same wc-api URL on your site (server-to-server notify + browser return) with the transaction status. No data leaves the site outside of these two round-trips.

This service is provided by myPOS World Ltd:

* Terms of service: https://www.mypos.com/en-gb/legal/terms
* Privacy policy: https://www.mypos.com/en-gb/legal/privacy-policy
* API documentation: https://developers.mypos.com/

The plugin makes no other network calls (no analytics, no license server, no third-party proxy).

== Screenshots ==

1. Wizard step 1 - paste your myPOS **Configuration Pack** (or start with the bundled demo pack) to try the gateway safely.
2. Wizard step 2 - tick the **myPOS payment methods** you want to expose at checkout (Visa, Mastercard, Maestro, PayPal, Klarna, SEPA, TWINT, and more).
3. Wizard step 3 - configure the WooCommerce and Pay4All Shop **order statuses** applied after a successful, refunded or failed myPOS payment.
4. Wizard step 4 - **summary** of the active configuration ; delete or replace the Configuration Pack in one click.
5. Help page - step-by-step guide plus links to the myPOS documentation.

== Changelog ==

= 1.1.1 =
* Pay4All Shop: free-total orders (0.-) now land on the merchant's configured "paid" status instead of triggering an empty myPOS session.

= 1.1.0 =
* Fixed Terms of service and Privacy policy URLs to point at their direct (non-redirecting) location on mypos.com.
* Cleaned up plugin bootstrap for the WordPress.org Plugin Directory (translation loading + header).

= 1.0.0 =
* Initial release.
* myPOS Virtual integration via Configuration Pack (paste from merchant portal).
* WooCommerce classic checkout + Checkout Blocks + HPOS support.
* Pay4All Shop integration.
* French, German, Italian and English translations bundled.

== Upgrade Notice ==

= 1.1.0 =
Directory-compliance fixes ; no functional changes.

= 1.0.0 =
Initial release. Free, no license, no subscription.
