mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
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:
parent
8640d3031d
commit
38a8473e57
2 changed files with 1 additions and 26 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue