Skip to content

Commit

Permalink
Toggle Bacs according to feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
asumaran committed Jan 22, 2025
1 parent b2afb0c commit 72040df
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ public function is_available_for_account_country() {
public function get_retrievable_type() {
return $this->get_id();
}

public function is_enabled_at_checkout( $order_id = null, $account_domestic_currency = null ) {
if ( ! WC_Stripe_Feature_Flags::is_bacs_lpm_enabled() ) {
return false;
}

return parent::is_enabled_at_checkout( $order_id, $account_domestic_currency );
}
}

0 comments on commit 72040df

Please sign in to comment.