=== Paythen Payment Plans for WooCommerce ===
Contributors: PaythenApp
Tags: woocommerce, payment plans, stripe plugins, buy now pay later, no code
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0
WC tested up to: 10.9.1
WC requires at least: 8.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Offer payment plans on your WooCommerce store using Paythen in under 2 minutes.

== Installation ==
1.  Activate the plugin
2.  After plugin activation go to woocommerce settings under payment options.
3.  Under payment option you will find many payment options, where you will find Paythen Payment Plan. Click on manage button on right hand side for update settings.
4.  You need to create account from paythen.co. You can find URL while clicking on create a free paythen account text.
5.  Once you logged in, create new plan and past template url to paythen template url field. For more details click on read more “here” text.
6.  Other fields are for show details and text on checkout page. You can get brief details while hover on question mark icon.
7.  Once all details on fields are added you are good to go.
8.  On checkout page you will see below option.
9. Fill all details on checkout page and select above payment option.
10. You will redirect to confirm order page. Where popup comes out with button called “Continue to payment”.
11. Click on button which will take you to paythen.com site where actual plan created. User only need to add name, email, and card detail.
12. Once payment success it will redirect you back to your website with your product purchased details.

== Changelog ==
V1.0
1. Limit a product's payment plan to selected variants or a minimum quantity from the gateway settings page.
2. Hide Paythen on the checkout block for the same carts the classic checkout already hides.
3. Stop sending custom field values to Paythen while "Pass additional values via custom fields" is switched off.
4. Connect your store directly to your Paythen account with a "Connect to Paythen" button (OAuth) - no more copying credentials by hand.
5. The gateway settings now show which Paythen account the store is linked to, who connected it, and when, plus a Disconnect option.
6. Template url fields are now dropdowns of the payment plan templates in your connected Paythen account, each showing the template name, its type, its url and when it was last edited.
7. Templates sync automatically when you connect, refresh in the background when the settings page is opened, and can be re-fetched any time with the Refresh templates button.
8. Removed the WooCommerce settings for letting customers choose their upfront amount or number of instalments — use a Flexipay template when shoppers should choose those on the Paythen plan page, or a standard or date-based template when the plan is fixed.
9. Variant and minimum-quantity rules for specific products are now optional: turn on "Customize payment plan availability…" after choosing products, instead of showing those controls by default.
10. "Enable Paythen for specific products only" now offers the payment plan when at least one selected product is in the cart, instead of requiring every product in the cart to be selected. The plan covers the whole cart. A selected product only counts when it also meets its own variant and minimum-quantity rules.
11. Paythen needs a connected Paythen account. Until the store is connected (a new install, or after Disconnect) the settings page shows only the Connect block, and Paythen is hidden at checkout and on product pages. Disconnecting keeps every setting, ready for when you reconnect.
12. Upgrading from 0.9.8.x keeps the products you had switched on for Paythen and their variant and minimum-quantity rules, now shown on the settings page.
13. Customers no longer choose a deposit or number of payments at checkout. Those are set on your Paythen template (eg. Flexipay), and the old settings are cleared on upgrade.
14. Tidier settings page: the account card, previews and product template rows line up with the rest of the form, the dropdowns match, and the previews stack under the fields on narrow screens.
15. Add your own order statuses for Paythen payment plan orders with "+ Add a custom status for payment plan orders". Add as many as you need, rename the selected one, or delete it (its orders move to Processing).
16. With "Add a different payment plan option based on the total amount" on, leaving the first plan's minimum and maximum blank now offers that plan for every other total, as its help text says, instead of hiding Paythen at checkout.
V0.9.8
1. Harden checkout metadata handling and server-side payment plan selection.
2. Prevent orphan checkout orders and fail safely for unsupported notification requests.
3. Improve redirect safety and output escaping without changing the checkout interface.
V0.9.7
1.Improved payment gateway method registration order.
V0.9.6
1.Fix issue for order status to be selected in plugin settings.
2.Fix mimum upfront amount issue to be dyanmic as per paythen plugin settings. 
V0.9.5
1.Fix notice / warning from woocommerce logs.
V0.9.4
1. Fix general error issue for gateway file missing. 
V0.9.3
1. Fix fatal error issue for order summary.
V0.9.2
1. Set condition for zero-decimal currency.
2. Fix admin setting minor issues.
V0.9.1.1
1. Improved paythen admin settings based on applied conditions.
V0.9.1
1. Customer selectable deposit feature now compatible with blocks. 
V0.9
1. Add customer selectable deposit feature.
V0.8.6
1. Fixed high performance compatible issue for woocommerce. 
V0.8.5
1. Fixed conflict with cartflow and elementor checkout blocks. 
V0.8.4
1. Make conditional changes to more strict.
V0.8.3
1. Update lables accordingly fields.
2. Make conditional changes to maximum and minimum template url.
V0.8.2
1. Fix minor bug and compatibility with other plugins. 
V0.8.1
1. Fix issue with funnelkit plugin after checkout order status.
V0.8
1. Support gutenberg checkout blocks on checkout page.
V0.7.7
1. Add new custom field functionality.
2. Fixed product page modal with boostrap conflict.
V0.7.6
1. Replace order id with order number to the plan name.
V0.7.5
1. Create zip from windows system to fix issue of incomplete archive error.
V0.7.4
1. Added dynamic woocommerce order status for paythen settings.
2. Set round instalment value on front end view for paythen. 

V0.7.3 
1. Append order number to the plan name

V0.7.2
1. Compatible to cardivo plugin and fix issue of instalment validation. 

V0.7.1
1. Currency format change for installment as per cart currency. 

V0.7
1. Compatible with multisites. 

V0.6.6
1. Fixed installment field condtion to visible on base of paythen setting.

V0.6.5
1. Installment field changed from input box to dropdown when minimum and maximum field set. When Maximum field is not set from back-end it will stay input box. 

V0.6.4
1. Optional note field updates.
2. Minimum order amount tooltip description update.

V0.6.3
1. Add new option to show optional note on confirmation page. 

V0.6.2
1. Add new option to describe paythen payment plan on single product page.

V.6.1
1. Add option to enable pythen payment plan on specific products only.

V0.6
1. Added option on paythen setting page to enable/disable paythen payment plan on product bases.
2. Added new option for enable paythen payment plan on single products.

V0.5.3
1. Fixed installment display amount error while adding bump order in funnelkit.
2. Displaying version on admin setting page.

V0.5.2
1. Added dropdown for admin to change order status.

v0.5.1
1. Display payment amount on base of customer instalment selection.

v0.5
1. Added new functionality for customer instalment input.
2. Allow admin to restrict minimum and maximum instalment input for customer.
3. Change status to "Processing" for virtual and downloadable products.
4. Fixed issue for elementor conflict for preview part.

v0.4.3
1. Fix issue of conflicting functions with cartflow and funnelkit for php 7.4 and 8.0
2. Fixed issue for elementor conflict for preview part.

v0.4.2
1. Manually change order status for learnpress plugin.

v0.4
1. Fixed conflicting issue with cartflow plugin.
2. Fixed issue of minimum purchase amount to show paythen payment plan with funnlekit plugin.

V0.3.1
1. Manually update order status to stay pending payment once order is placed.

V0.3
1. Added maximum amount option to compare cart total and show easy payment plan.
2. Added 2 options to show different payment plan on base of cart amount.
3. Tested with major woocommerce plugin (Free version). Added list on other table.

V0.2.2
1. Make compatibility with cartflow.
2. Fixed issue of after payment come back on custom order success page/url.

V0.2.1
1. Change checkout modal with direct redirection to app after stripe payment plan select.
2. Added Minimum order amount functionality on cart total to show stripe payment plan.
3. Order Received custom url option added

While the Paythen plugin is compatible with most other plugins, it has been specifically tested for compatibility issues with these common ones that affect the checkout / purchase flow directly:

- WooCommerce Payments - v4.8.0
- Stripe by WooCommerce - v6.8.0
- PayPal Payments by WooCommerce - v1.9.3
- WooCommerce Direct Checkout - v2.6.9
- Elementor (free) - v3.7.7
- Divi Builder (plugin) - v4.18.0
- Cartflows (free) - v1.11.7
- WooCommerce Shipping - v1.2.63
- Discount Rules for WooCommerce - v2.4.5
- WooCommerce Blocks - v8.7.1
- Cartflows starter (paid) - v1.11.6
- FunnelKit Checkout (paid) - v3.5.9

If you have any issues with these, or other plugins, we can help. Please contact us via the chat icon at https://paythen.co