From 0c2c6f324fb14c7215cefcd404f17dc550b3b058 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Fri, 19 Jun 2026 10:50:27 -0300 Subject: [PATCH 1/2] Only add gateway fields when Stripe gateway is selected --- stripe/controllers/FrmTransLiteActionsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stripe/controllers/FrmTransLiteActionsController.php b/stripe/controllers/FrmTransLiteActionsController.php index 55a2d0d656..e84cb83208 100755 --- a/stripe/controllers/FrmTransLiteActionsController.php +++ b/stripe/controllers/FrmTransLiteActionsController.php @@ -595,6 +595,11 @@ public static function before_save_settings( $settings, $action ) { } } + if ( ! in_array( 'stripe', $settings['gateway'], true ) ) { + // We only need a gateway field for Stripe compatibility, so unless Stripe is selected, we can return early. + return $settings; + } + $gateway_field_id = FrmDb::get_var( 'frm_fields', array( From b071d2d45cf87a5cf6e780eae3668765b7797ce0 Mon Sep 17 00:00:00 2001 From: Mike Letellier Date: Fri, 19 Jun 2026 10:51:49 -0300 Subject: [PATCH 2/2] Tweak comment --- stripe/controllers/FrmTransLiteActionsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stripe/controllers/FrmTransLiteActionsController.php b/stripe/controllers/FrmTransLiteActionsController.php index e84cb83208..13e52bbf30 100755 --- a/stripe/controllers/FrmTransLiteActionsController.php +++ b/stripe/controllers/FrmTransLiteActionsController.php @@ -596,7 +596,8 @@ public static function before_save_settings( $settings, $action ) { } if ( ! in_array( 'stripe', $settings['gateway'], true ) ) { - // We only need a gateway field for Stripe compatibility, so unless Stripe is selected, we can return early. + // We only need a gateway field for Stripe add-on compatibility, + // so unless Stripe is selected, we can return early. return $settings; }