=== Checkout for Freemius ===

Contributors: Dreamfox
Donate link: https://www.dreamfoxmedia.com
Tags: freemius, freemius checkout, software licensing, monetize, plugin licensing
Requires at least: 5.8
Tested up to: 7.0.4
Stable tag: 2.2.1
WC requires at least: 6.0.0
WC tested up to: 11.0.1
Requires PHP: 7.4
License: GPLv3 or later
License URI: https://opensource.org/licenses/GPL-3.0

Add a Freemius Checkout buy button to sell WordPress plugins and themes with subscriptions, licenses, and one-click payments.

== Description ==

**Checkout for Freemius** created by [Dreamfox Media](https://dreamfoxmedia.com) helps WordPress developers and theme authors monetize digital products with a simple **Freemius Checkout** buy button. Add a shortcode to any page or post and start selling plugin licenses, theme licenses, subscriptions, and SaaS plans without building a custom checkout flow.

= Why use this plugin? =

* **Sell WordPress plugins and themes** from your own website, landing page, or documentation.
* **Accept subscriptions and one-time payments** through the official Freemius Checkout overlay.
* **Launch faster** with a lightweight shortcode instead of custom payment integration.
* **Works with modern WordPress** and loads checkout assets only when the shortcode is used.

= Perfect for =

* WordPress plugin developers using Freemius
* Theme authors selling premium themes or add-ons
* SaaS and subscription-based WordPress products
* Agencies promoting client plugins with a direct buy button
* WooCommerce store owners who also sell Freemius-licensed products

= How it works =

Freemius provides a powerful platform for WordPress developers to turn plugins and themes into a subscription-based business. This plugin connects your site to **Freemius Checkout** so visitors can purchase in a secure popup without leaving the page.

1. Create your product in the Freemius Developer Dashboard.
2. Copy your plugin ID, plan ID, pricing ID, and public key.
3. Add the `[checkout-for-freemius]` shortcode to any page.
4. Visitors click **Buy Now** and complete checkout in the Freemius overlay.

= Shortcode usage =

Use the `[checkout-for-freemius]` or `[freemius_checkout]` shortcode to add a buy button anywhere on your site.

**Available parameters:**

* `name` - Product name shown in checkout (plugin or theme name)
* `plugin_id` - Your Freemius product ID
* `plan_id` - Subscription or pricing plan ID
* `pricing_id` - Specific pricing tier ID
* `public_key` - Your Freemius public key
* `image` - Product logo URL for the checkout popup
* `button` - Button label (default: Buy Now)
* `button_id` - HTML ID for the button (default: purchase)
* `button_class` - Custom CSS classes for styling

**Example:**

`[checkout-for-freemius name="Press Elements" plugin_id="761" plan_id="1078" pricing_id="928" public_key="pk_fe2850d57f7d4f206aefaa106b91f" button="Buy Now"]`

= Features =

* Freemius Checkout overlay popup
* Shortcode-based setup with no coding required
* Support for multiple buy buttons on the same page
* Compatible with WordPress 7.0 and WooCommerce 10.9
* No jQuery dependency
* Lightweight script loading only on pages with the shortcode

= Dreamfox Media =

Dreamfox Media creates Premium WooCommerce extensions for shipping options, payment gateways and pricing — built by developers who run stores themselves. Lifetime updates, expert support, fair price.
If any questions Contact us @ [Dreamfox Media](https://dreamfoxmedia.com/contact/)

== Screenshots ==

1. DFM Plugins — Dreamfox Media overview and the full plugin lineup.
2. Freemius Checkout — shortcode reference, parameters, and usage examples.

== Third-Party Service Information ==

This plugin relies on the Freemius Checkout service to process transactions. The service is used to display the buy button and handle the purchase flow.

* [Freemius Checkout](https://checkout.freemius.com)
* [Freemius Terms of Service](https://freemius.com/terms/)
* [Freemius Privacy Policy](https://freemius.com/privacy/)

== Frequently Asked Questions ==

= Does this plugin require Freemius? =

Yes. You need a Freemius developer account and a product configured in the Freemius Developer Dashboard before the buy button can process purchases.

= Does this plugin require WooCommerce? =

No. Checkout for Freemius works independently with Freemius Checkout. WooCommerce compatibility headers are included for stores that run both platforms.

= Where is data sent? =

Checkout data is sent to Freemius, including product ID, plan ID, pricing ID, public key, and information entered by the customer during checkout.

= Why is the buy button not working? =

Make sure the shortcode includes both `plugin_id` and `public_key`. The Freemius checkout script only loads on pages where the shortcode is present.

If you use multiple buttons on the same page, give each one a unique `button_id`.

= What are the plugin requirements? =

**Minimum requirements**

* WordPress 5.8 or higher
* PHP 7.4 or higher
* MySQL 5.6 or higher

**Recommended requirements**

* WordPress 7.0
* PHP 8.2 or higher
* Latest MySQL or MariaDB version

== Changelog ==

= 2.2.1 - 2026-08-19 =
* Fix: the Helpspot Live Lookup cross-link in the DFM Plugins table pointed to a dreamfoxmedia.com URL instead of its actual, live WordPress.org listing (wordpress.org/plugins/dreamfox-helpspot-live-lookup/).

= 2.2 - 2026-08-19 =
* Fix: the WordPress.org listing had been stuck since 2026-07-08 on an incorrectly-tagged "2.1" release that actually shipped older (1.0.12-era) code — this release supersedes it with the real, current codebase.
* Fix: `Plugin URI` pointed to a dead 404 page; corrected to the live dreamfoxmedia.com listing.
* Fix: the plugin version constant was hardcoded and drifted from the actual header version; now read from the plugin header at runtime.
* New: the "DFM Plugins" and "Freemius Checkout" admin pages have a new two-column layout with a sidebar (Dreamfox Media links + sibling-plugin cross-links) and a real screenshot gallery, matching the other Dreamfox WooCommerce plugins.
* New: WordPress.org listing banner.
* Tags in readme.txt optimized for WordPress.org plugin-directory search.

= 1.0.15 - 2026-08-17 =
* Compatibility: getest met WordPress 7.0.4 en WooCommerce 11.0.1

= 1.0.14 - 2026-08-10 =
* Compatibility: getest met WordPress 7.0.3 en WooCommerce 11.0.0

= 1.0.13 - 2026-07-27 =
* Compatibility: getest met WordPress 7.0.2 en WooCommerce 10.9.4

= 1.0.12 =
* Add Dreamfox Media info, website links, and plugin overview to the DFM Plugins admin page.
* Add shortcode parameter reference and usage examples to the Freemius Checkout admin page.
* Reduce the settings banner image size by 40%.

= 1.0.11 =
* Declare compatibility with WooCommerce High-Performance Order Storage (HPOS) and cart/checkout blocks.
* Prevent fatal errors on activation when another copy of the plugin is already active.
* Add Requires PHP header (7.4).

= 1.0.10 =
* Replace settings banner with a custom image tailored to Checkout for Freemius.

= 1.0.9 =
* Add Freemius Checkout banner image to the plugin settings page.

= 1.0.8 =
* Update tested up to WordPress 7.0 and WooCommerce 10.9.3.
* Improve plugin directory description, tags, and SEO-friendly copy.
* Refresh short description and FAQ for better discoverability.

= 1.0.7 =
* Version bump.

= 1.0.6 =
* Fix broken checkout JavaScript that prevented the buy button from opening the Freemius popup.
* Restore documented shortcodes: [checkout-for-freemius] and [freemius_checkout].
* Load Freemius checkout assets only when the shortcode is used.
* Migrate to the current Freemius Checkout JS SDK and remove the jQuery dependency.
* Support multiple checkout buttons on the same page with unique button IDs.

= 1.0.5 =
* Fixes for plugin

= 1.0.4 =
* Fixes for plugin

= 1.0.2 =
* Fixes for plugin

= 1.0.1 =
* Fixes for plugin

= 1.0 =
* Initial release.
* Freemius checkout shortcode.
