=== ChatSell Moneris Gateway Pro ===
Contributors: chatsellco
Tags: woocommerce, moneris, apple pay, google pay, 3d secure
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.1.2
WC requires at least: 9.0
WC tested up to: 11.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds saved cards, 3-D Secure 2, Apple Pay and Google Pay to ChatSell Payment Gateway with Moneris for WooCommerce. 30-day free trial, then a subscription.

== Description ==

ChatSell Moneris Gateway Pro extends the free **ChatSell Payment Gateway with Moneris for WooCommerce** plugin. It installs alongside it and adds, on both classic and Cart/Checkout Blocks checkout:

* **Saved cards** for logged-in customers (stored at Moneris; only a reference token is kept locally), including add/remove from My Account.
* **3-D Secure 2** (EMV 3DS) authentication with frictionless and challenge flows and a configurable failure policy; authenticated payments may qualify for fraud-liability protection under applicable card-network and Moneris rules.
* **Apple Pay** using Moneris' Simple Setup — no Apple developer account, no certificates, and no file to upload to your server.
* **Google Pay** — Moneris is one of Google's participating processors, so the browser encrypts the card for Moneris and nothing is uploaded to your server.
* Wallet payments are checked against the amount the shopper approved before anything is charged.

The plugin runs free for 30 days from activation with every feature included, then needs a subscription. When a trial or subscription lapses the Pro payment methods are hidden at checkout; settings, saved cards and orders are untouched, and everything returns the moment the licence is renewed. Support: support@chatsell.co.

This plugin is not affiliated with or endorsed by Moneris Solutions Corporation. "Moneris" is a trademark of its respective owner.

== Installation ==

1. Install and activate **ChatSell Payment Gateway with Moneris for WooCommerce** and configure your Moneris credentials under **WooCommerce → Settings → Payments → Moneris API**.
2. Upload this plugin to `/wp-content/plugins/` and activate it. The trial starts by itself.
3. Back in the gateway settings, tick **Saved Cards** and/or **3-D Secure**, and set up Apple Pay and Google Pay in their own cards.

**Apple Pay**

1. In the Merchant Resource Center go to **Admin → Apple Pay**, click **Add Profile** and register this site's domain. Download the association file it gives you.
2. Paste the file into the **Domain Association File** setting, save, and click **Check domain file**.
3. Fill in the **Apple Pay Store ID** and the **Merchant Resource Center API Token** for the environment selected above, then tick **Offer Apple Pay at checkout**.

**Google Pay**

1. Enter the **Google Pay Store ID** for the environment selected above (or leave it empty to reuse the Apple Pay store ID).
2. Tick **Offer Google Pay at checkout**.

The wallet credentials can be pinned in `wp-config.php` like the core ones: `MONERIS_API_WC_SANDBOX_APPLE_PAY_STORE_ID`, `MONERIS_API_WC_PRODUCTION_APPLE_PAY_STORE_ID`, `MONERIS_API_WC_SANDBOX_MRC_API_TOKEN`, `MONERIS_API_WC_PRODUCTION_MRC_API_TOKEN`, `MONERIS_API_WC_SANDBOX_GOOGLE_PAY_STORE_ID`, `MONERIS_API_WC_PRODUCTION_GOOGLE_PAY_STORE_ID`.

== Third-party services ==

In addition to the Moneris API calls made by the core plugin, this add-on sends data to:

* **Moneris Apple Pay SDK and gateway** (`www3.moneris.com/applepayjs`, `mpg1.moneris.io`; sandbox `esqa.moneris.com`) — loaded only when Apple Pay is enabled, to validate your domain with Apple and mint the merchant-validation ticket.
* **Google Pay** (`pay.google.com`) — loaded only when Google Pay is enabled, to draw the button and open the payment sheet. [Google Pay API terms](https://payments.developers.google.com/terms/sellertos).
* **ChatSell licence server** (`api-production-827bc.up.railway.app`, operated by the plugin author) — contacted once when the plugin is activated and then about once a day, with your site URL, the site administrator email, and the plugin version, to start the 30-day trial and check whether the licence is current. Subscribing opens a **Stripe** checkout page (`checkout.stripe.com`), where Stripe handles your card and billing details; the plugin only receives whether the subscription is active. [Stripe privacy](https://stripe.com/privacy).

No order, customer or card data is ever sent to the plugin author.

== Frequently Asked Questions ==

= Is it free? =

The add-on is free for 30 days from the day you activate it, with every feature included. After that a subscription keeps the Pro payment methods at checkout; subscribe from the Licence card in the gateway settings. Questions about pricing, or need the trial extended? Email support@chatsell.co.

= What happens when the trial ends? =

Saved cards, 3-D Secure, Apple Pay and Google Pay stop being offered at checkout and a notice appears in the dashboard. Plain card payments through the core plugin keep working. Nothing else changes: your settings, saved cards and order history stay exactly as they were, and they are back the moment you subscribe.

= Can I move my licence to another site? =

Yes. Paste the key from the old site into the **Activate a key** field on the new site and save; the key then stops working on the old site.

== Changelog ==

= 1.1.2 - 2026-12-02 =
* Fix: 3-D Secure no longer fails with "Card authentication is unavailable" for shoppers on an IPv6 connection. Moneris only accepts an IPv4 browser address, so the plugin now sends an IPv4 address (or a placeholder when the shopper has none).

= 1.1.1 - 2026-10-18 =
* New: update notifications, one-click updates and the auto-update toggle on the Plugins screen.

= 1.1.0 - 2026-10-13 =
* First release as an add-on. Saved cards, 3-D Secure 2, Apple Pay and Google Pay moved here from Moneris API for WooCommerce 1.0.0, unchanged in behaviour.
* New: 30-day free trial, then a subscription, managed from the Licence card in the gateway settings (Stripe checkout and billing portal). Keys can be moved between sites.
