Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions stripe/controllers/FrmTransLiteActionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading