=== TorobPay for WooCommerce ===
Contributors: torobpay, macse2
Tags: torobpay, ترب‌پی, woocommerce, payment gateway, installments
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 4.8.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept TorobPay installment payments in your WooCommerce store.

== Description ==

[TorobPay](https://torobpay.com/) lets customers pay in installments at checkout.

You need a TorobPay merchant account to use this plugin. You may [register here](https://panel.torob.com/s/torobpayRegisteration).

The plugin:

* Works with classic and block checkout
* Syncs order status and supports refunds
* Shows installment info on product pages, plus a slider and banners so shoppers know installments are available
* Takes in-store payments with a QR code
* Shows an optional TorobPay discount code on the product widget
* Lets merchants join the TorobPay campaign

== Installation ==

1. Upload the plugin or install the ZIP via **Plugins → Add New**.
2. Activate **TorobPay for WooCommerce**.
3. Make sure WooCommerce is active.
4. Go to **WooCommerce → Settings → Payments**, enable TorobPay, and enter your merchant details.

== Frequently Asked Questions ==

= Do I need a TorobPay account? =

Yes. Register as a TorobPay merchant and get your account details before you can accept payments.

= Why don't I see the In-store selling option on the TorobPay orders page? =

Ask TorobPay to enable this feature for you.

= Does this work with High-Performance Order Storage (HPOS)? =

Yes.

= Where can I get support? =

Visit [https://panel.torobpay.com/s](https://panel.torobpay.com/s) or use the support options in your TorobPay merchant panel.

= What happened to the Custom CSS editor? =

It was removed in 4.7.2. If you had custom CSS there, copy it into your theme or **Appearance → Customize → Additional CSS**. Those rules are not migrated automatically.


== Changelog ==

= 4.8.7 =
* Gateway URL stays locked until you turn on "Use a custom gateway URL".
* Product widget sits higher on the page. Stores that set their own hook or priority are left as they are.
* Stops other plugins from adding a fee or raising prices on TorobPay. Discounts on other payment methods stay.
* An order that is already paid finishes checkout instead of starting another payment.
* The admin notice for orders that need review can be dismissed until more orders need action.

= 4.8.0 =
* In-store orders from the TorobPay orders screen. The customer pays by QR code and sees a payment result page with installment dates.
* In-store orders are marked in the orders list and in the order screen.
* Optional TorobPay discount code on the product-page widget. Shoppers enter it on the TorobPay payment page, not in the store coupon field.
* Clearer TorobPay error and warning messages, with a way to recheck eligibility from the notification center if there was any issue reported by TorobPay.

= 4.7.6 =
* Better handling when TorobPay is default payment method.
* Stops a conflicting discount plugin from adding extra fees on TorobPay.
* New campaign data sharing method, now merchants could just enable it and it works automatically.
* New UTM action profile for "utm_medium" which contain "TorobPay" term.
* Improved settings UI and bug fixes.
* Improved marquee and badge styles to support more themes out of the box.
* Combined Jalali date range filter in TorobPay orders table page. 

= 4.7.5 =
* Guest checkout now goes straight to TorobPay.
* Clearer checkout error messages.
* Checkout always redirects to TorobPay.

= 4.7.4 =
* WordPress.org review follow-up.

= 4.7.3 =
* WordPress.org review follow-up.
* Product-page installment amounts now follow the selected quantity.
* Safer handling when a paid order is not marked paid by WooCommerce.

= 4.7.2 =
* WordPress.org review fixes. Custom CSS editor removed — move any custom CSS to your theme or **Appearance → Customize → Additional CSS**.

= 4.7.1 =
* More reliable order updates, especially on shared hosting.

= 4.7.0 =
* First WordPress.org release. Updates now come through WordPress.org. Re-activate the plugin if the main file name changed.

== Upgrade Notice ==

= 4.8.7 =
Already-paid orders finish checkout instead of starting another payment. Upgrade recommended.

= 4.8.0 =
In-store payments and a product-page discount code. Upgrade recommended.

= 4.7.6 =
New campaign method and UI. Upgrade recommended.

= 4.7.5 =
Guest checkout now goes straight to TorobPay. Recommended for all stores.

= 4.7.2 =
Custom CSS editor removed. Move any custom CSS to your theme or Appearance → Customize → Additional CSS.

= 4.7.0 =
Updates now come through WordPress.org. Re-activate the plugin if the main file name changed.
