From e9c6a08047066c05060530f97a4822b0a6b50819 Mon Sep 17 00:00:00 2001 From: Leo Fajardo Date: Thu, 9 Jul 2026 16:27:11 +0800 Subject: [PATCH 1/2] [checkout] [add-on] Fix the add-on checkout params. (#876) --- includes/managers/class-fs-checkout-manager.php | 9 +++++++++ start.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/includes/managers/class-fs-checkout-manager.php b/includes/managers/class-fs-checkout-manager.php index 5cde3e37..8bd52f83 100644 --- a/includes/managers/class-fs-checkout-manager.php +++ b/includes/managers/class-fs-checkout-manager.php @@ -110,6 +110,15 @@ public function get_query_params( Freemius $fs, $plugin_id, $plan_id, $licenses // If add-on isn't activated assume the premium version isn't installed. $is_premium = false; } + + // Override the checkout context with the add-on's purchase details so the checkout flow is initialized for the selected add-on instead of the parent product. + $context_params['plugin_id'] = $plugin_id; + + foreach ( array( 'plan_id', 'pricing_id', 'billing_cycle', 'is_trial' ) as $param ) { + if ( fs_request_has( $param ) ) { + $context_params[ $param ] = fs_request_get( $param ); + } + } } // Get site context secure params. diff --git a/start.php b/start.php index 128e88e4..1f31faa9 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.13.3'; + $this_sdk_version = '2.13.3.1'; #region SDK Selection Logic -------------------------------------------------------------------- From 44e2607bdca2488a626dd2fbcc2ed0764dea6a58 Mon Sep 17 00:00:00 2001 From: Leo Fajardo Date: Thu, 9 Jul 2026 16:34:34 +0800 Subject: [PATCH 2/2] [version] Bump version to 2.13.4 (#877) --- start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.php b/start.php index 1f31faa9..cea748b5 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.13.3.1'; + $this_sdk_version = '2.13.4'; #region SDK Selection Logic --------------------------------------------------------------------