PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Modules/PaymentMethods/PromoGateways/Addons/AddonGatewaySettings.php +2 -1 1.5.3 → 1.6.5 View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2
3 3 namespace FluentCart\App\Modules\PaymentMethods\PromoGateways\Addons;
4 4
5 +use FluentCart\App\Helpers\Helper;
5 6 use FluentCart\App\Modules\PaymentMethods\Core\BaseGatewaySettings;
6 7 use FluentCart\App\Services\PluginInstaller\PaymentAddonManager;
7 8 use FluentCart\Framework\Support\Arr;
8 9
@@ -247,9 +248,9 @@
247 248 $proRequired = !empty($config['pro_required']) && !defined('FLUENTCART_PRO_PLUGIN_VERSION');
248 249 if ($proRequired) {
249 250 $statusMessage = __('Requires Pro', 'fluent-cart');
250 251 $statusColor = $styles['status_warning'];
251 - $upgradeUrl = esc_url($config['repo_link'] ?? 'https://fluentcart.com/pricing/');
252 + $upgradeUrl = esc_url($config['repo_link'] ?? Helper::getUpgradeUrl('feature_lock_gateway_' . $this->gatewaySlug));
252 253 $actionButton = '<a href="' . $upgradeUrl . '" target="_blank" rel="noopener noreferrer" '
253 254 . 'style="display: inline-flex; align-items: center; background: ' . $styles['button_primary_bg'] . '; color: ' . $styles['button_primary_text'] . '; padding: 10px 24px; border-radius: 6px; font-weight: 500; font-size: 14px; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1);">'
254 255 . $this->renderIcon('M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 4l5 2.18V11c0 3.5-2.33 6.79-5 7.93-2.67-1.14-5-4.43-5-7.93V7.18L12 5z', 'width: 16px; height: 16px; margin-right: 6px; fill: ' . $styles['button_primary_text'] . ';')
255 256 . __('Upgrade to Pro', 'fluent-cart')