Remove redundant method

pay later is not available for mini-cart, and even if we add it we should not implement this check with such confusing naming (location and context)
This commit is contained in:
Alex P 2023-02-26 15:03:41 +02:00
parent 8640d3031d
commit 38a8473e57
No known key found for this signature in database
GPG key ID: 54487A734A204D71
2 changed files with 1 additions and 26 deletions

View file

@ -972,7 +972,7 @@ class SmartButton implements SmartButtonInterface {
$disable_funding = $all_sources;
}
if ( ! $this->settings_status->is_pay_later_button_enabled_for_context( $this->context() ) ) {
if ( ! $this->settings_status->is_pay_later_button_enabled_for_location( $this->context() ) ) {
$disable_funding[] = 'credit';
}