diff --git a/stripe/controllers/FrmTransLiteActionsController.php b/stripe/controllers/FrmTransLiteActionsController.php index 55a2d0d656..13e52bbf30 100755 --- a/stripe/controllers/FrmTransLiteActionsController.php +++ b/stripe/controllers/FrmTransLiteActionsController.php @@ -595,6 +595,12 @@ public static function before_save_settings( $settings, $action ) { } } + if ( ! in_array( 'stripe', $settings['gateway'], true ) ) { + // We only need a gateway field for Stripe add-on compatibility, + // so unless Stripe is selected, we can return early. + return $settings; + } + $gateway_field_id = FrmDb::get_var( 'frm_fields', array(