=== NeroPay Payment Gateway for WooCommerce ===
Contributors: neropay
Tags: payment gateway, woocommerce, ecommerce, wallet, neropay
Requires at least: 5.6
Tested up to: 7.1.4
Stable tag: 2.7.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Secure WooCommerce payments with NeroPay, plus stock sync and order sync with NeroPOS and NeroWEB.

== Description ==

NeroPay Payment Gateway for WooCommerce allows merchants to integrate NeroPay into WooCommerce-enabled WordPress websites with secure and reliable payment processing.

With this plugin, you can accept payments smoothly at checkout and also keep your operations connected with NeroPOS and NeroWEB integrations.

Key Features:
* Easy integration with WooCommerce
* Secure payment processing through NeroPay
* Stock sync support
* Order creation and sync with NeroPOS
* NeroWEB sync support
* Supports multiple currencies

To get started, you'll need a NeroPay merchant account. Sign up at [NeroPay](https://neropay.app/).

== Installation ==

1. Download and install the plugin from the WordPress Plugin Directory or upload the plugin zip in your WordPress admin panel.
2. Activate the plugin.
3. Go to `WooCommerce > Settings > Payments`.
4. Select `NeroPay` and click `Set Up`.
5. Enter your NeroPay API credentials.
6. Save changes and enable the gateway.
7. Use the classic WooCommerce checkout ([woocommerce_checkout]). The block-based Checkout is not supported in this release.

== NeroConnect setup ==

Use the connected merchant's own Public Key and Secret Key for each store.
Do not distribute a platform's Secret Key to connected merchant websites.
The account's configured NeroConnect fees and fee-payer rules remain server-side.
Checkout uses NeroPay hosted payments over the authenticated /v2/hosted-payments API.
No card data is collected by this plugin and no SQL or migration is required.

Stock sync and external order creation are optional, separate features. If used,
configure a transaction.succeeded webhook on the SAME merchant account. Its
signing secret is different from the merchant API secret. Hosted WooCommerce
payments are not reimported by stock/order webhooks.

Before upgrading a live store, finish outstanding 2.6 checkouts. Older callbacks
without a saved payment reference are flagged in the order notes for verification;
they are never blindly marked paid or charged again. Check the payment in NeroPay.
An interrupted stock/order webhook is held for review instead of replaying changes.

== Frequently Asked Questions ==

= How do I create a NeroPay account? =
Visit [NeroPay](https://neropay.app/) and click on "Sign Up".

= Which checkout does this plugin support? =
Use the classic WooCommerce checkout. The Cart and Checkout blocks are not supported in this release. Test your theme and checkout customisations on a staging store before updating your live site.

= What payment methods does NeroPay support? =
NeroPay supports a range of payment methods. Please check the [NeroPay website](https://neropay.app/) for details.

= Is technical support available? =
Yes. Please contact [support@neropay.app](mailto:support@neropay.app).

== External service ==

This plugin connects to the NeroPay service at https://eu.neropay.app. A NeroPay merchant account is required; service fees follow your account agreement.
When a customer starts checkout, the plugin sends the order reference, amount, currency, return URLs and customer billing/contact details to create a hosted payment page. It checks payment status before completing the WooCommerce order. Card details are entered on the hosted payment page, not collected by this plugin.
If optional inventory synchronisation is enabled, product SKUs and stock quantities are also exchanged with NeroPay. Signed inbound webhooks can update stock or create external orders according to your settings.
Terms: https://neropay.app/legal/#terms-conditions
Privacy: https://neropay.app/legal/#privacy

== Changelog ==

= 2.7.2 =
* Cancel returns shoppers to checkout without cancelling their WooCommerce order.
* Safely replace cancelled or changed hosted checkouts after verifying the previous payment.
* Reuse saved retry requests after timeouts and retain paid/refunded order protections.
* Install the matching NeroPay hosted-checkout server update before enabling replacement checkout retries.

= 2.7.1 =
* Updated the plugin name and NeroPay branding.
* Preserved the existing gateway ID, saved credentials and callback URL during the rename.
* Tested with WordPress 7.1.4 and WooCommerce 11.2.2, including classic and HPOS order storage.
* Declared classic checkout support; Checkout Blocks are not supported.
* Fixed PHP dynamic-property deprecation notices.

= 2.7.0 =
* Authenticated hosted checkout with saved payment/account references and verified status.
* Order currency, TLS validation, bounded requests and duplicate callback protection.
* Failed or invalid notifications cannot fail a paid order; stock reduction is owned by WooCommerce.
* Merchant-scoped, timestamp-checked webhooks and duplicate external-order protection.
* NeroConnect setup guidance for connected merchant credentials.


= 2.6 =
* Added stock sync support.
* Added create order integration for NeroPOS.
* Added NeroWEB sync support.
* Improved WooCommerce payment gateway integration.
* General fixes and performance improvements.

= 1.0.0 =
* Initial release.
* Integrated secure payment processing via NeroPay.
* Full compatibility with WooCommerce.

== Upgrade Notice ==

= 2.7.1 =
Updated branding and compatibility metadata. Existing NeroPay payment settings are retained. Use classic checkout and verify any outstanding 2.6 checkouts before upgrading.

= 2.6 =
Adds stock sync, NeroPOS order creation, and NeroWEB sync improvements.

= 1.0.0 =
Initial release. Please ensure WooCommerce is installed and activated before using the NeroPay plugin.

== Screenshots ==

1. Plugin settings page
2. Checkout page
3. Transaction reports

== Notes ==

For more details and support, visit the [Help Centre](https://docs.neropay.app/) or contact [support@neropay.app](mailto:support@neropay.app).