=== Checkout for Freemius ===

Contributors: Dreamfox
Donate link: https://www.dreamfoxmedia.com
Tags: freemius, checkout, sell plugins, subscription, monetize
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 2.1
WC requires at least: 6.0.0
WC tested up to: 10.9.3
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. Freemius Checkout buy button and overlay popup

== 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 ==

= 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.
