=== InPrimePay for WooCommerce ===
Contributors: inprimepay
Tags: woocommerce, payment gateway, stripe, sepa, klarna
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://inprimepay.com

Accept Credit Cards (Visa, Mastercard), SEPA Direct Debit, Klarna, Satispay, Alma, Scalapay, and Subscriptions on WordPress and WooCommerce.

== Description ==

**InPrimePay for WooCommerce** allows merchants and professionals to accept online payments simply, securely, and flexibly on their WordPress site.

The plugin operates both in **Standalone Mode** (using the shortcode `[inprimepay_button]` on any page or post without needing a full e-commerce setup), and in **Integrated WooCommerce Mode** to handle full product checkouts.

== External Services ==

This plugin relies on external 3rd-party services to process payments, manage merchant accounts, synchronize transaction data, and render secure payment forms.

1. **InPrimePay SaaS Platform & API**
   * **Service & Purpose**: Connects to the InPrimePay SaaS API (`https://api.inprimepay.com` / `https://inprimepay.com`) to handle merchant account authentication, transaction processing, Payment Intent creation, order status synchronization, webhook verification, and merchant onboarding.
   * **Data Transmitted**:
     - Merchant registration details (name, email, business info) are sent when registering or logging in via the WordPress plugin administration dashboard.
     - Order transaction data (monetary amount, currency, customer email, billing details, line items, and order ID) is sent to `https://api.inprimepay.com` when a customer initiates a payment via standalone shortcode or WooCommerce checkout.
   * **Terms of Service**: [https://inprimepay.com/termini-del-servizio/](https://inprimepay.com/termini-del-servizio/)
   * **Privacy Policy**: [https://inprimepay.com/privacy-policy](https://inprimepay.com/privacy-policy)

2. **Stripe Payments Platform**
   * **Service & Purpose**: Enqueues the `Stripe.js` library (`https://js.stripe.com/v3/`) on payment and checkout pages to render secure client-side payment elements (Credit/Debit Cards, SEPA Direct Debit, Klarna, Satispay, Apple Pay, Google Pay) and tokenize sensitive payment credentials.
   * **Data Transmitted**:
     - The `Stripe.js` script (`https://js.stripe.com/v3/`) is loaded directly from Stripe's servers whenever a payment form or checkout page is rendered.
     - Buyer payment credentials (card details, IBANs, billing address, payment tokens) are transmitted directly from the buyer's browser to Stripe's servers (`https://api.stripe.com`) for PCI-DSS compliant authorization. No raw credit card data touches or passes through the WordPress web server.
   * **Terms of Service**: [https://stripe.com/legal/consumer](https://stripe.com/legal/consumer)
   * **Privacy Policy**: [https://stripe.com/privacy](https://stripe.com/privacy)

### Key Features

* **Credit & Debit Card Payments**: Visa, Mastercard, Apple Pay, Google Pay, and Samsung Pay.
* **Buy Now Pay Later (Installments)**: Direct integration with Klarna, Alma, Scalapay, and Billie to allow customers to split payments.
* **SEPA Direct Debit**: Accept recurring or direct payments from bank accounts across the SEPA zone.
* **Local Payment Methods**: Support for Satispay and TWINT (Switzerland).
* **Standalone Shortcode Mode**: Sell services or digital products on the fly using a simple button shortcode `[inprimepay_button]`.
* **Integrated WooCommerce Checkout**: Supports both classic checkout and WooCommerce Gutenberg / React Blocks.
* **Maximum Security**: Server-side validation of financial data and HMAC signature verification for incoming Webhooks.

== Installation ==

1. Upload the `inprimepay` directory to `/wp-content/plugins/` or install the ZIP package directly via **Plugins > Add New > Upload Plugin**.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **InPrimePay for WooCommerce** in the admin menu.
4. Log in with your InPrimePay credentials or register a new Merchant account.
5. Complete Stripe onboarding to enable payment collection.
6. (Optional) If using WooCommerce, enable the gateway in **WooCommerce > Settings > Payments > InPrimePay**.

== Screenshots ==

1. InPrimePay enabled as a WooCommerce payment provider.
2. InPrimePay gateway settings and enabled payment methods.
3. InPrimePay payment option displayed at WooCommerce checkout.
4. InPrimePay secure payment modal for pay-now methods.
5. InPrimePay installment payment methods.

== Frequently Asked Questions ==

== Frequently Asked Questions ==

= Is WooCommerce required to use InPrimePay? =
No, WooCommerce is not required. You can use the plugin in Standalone mode by adding payment shortcodes directly to your pages or posts. If WooCommerce is installed, InPrimePay will automatically integrate as a payment gateway during Checkout.

= What fees apply? =
Transaction fees depend on your selected plan. You can check the detailed pricing and fee schedule at [https://inprimepay.com/prezzi/#commissioni](https://inprimepay.com/prezzi/#commissioni).

= Is payment data secure? =
Yes. All transactions are processed in compliance with PCI-DSS security standards. The plugin implements HMAC cryptographic signatures for webhooks and performs strict server-side validation of order and amount data.

== Upgrade Notice ==

= 1.3.6 =
First official release with WooCommerce support, Standalone Shortcode, and HMAC security.

== Changelog ==

= 1.3.6 =
* Security enhancements: Added HMAC SHA-256 authentication for Webhook endpoint.
* Enhanced WooCommerce callback protection with order key verification and payment status check.
* Strict server-side financial data validation and AJAX input sanitization.
* Added LICENSE file (GPLv2) and detailed SaaS Terms of Service disclosure in readme.txt.
