mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Consolidate conditional
This commit is contained in:
parent
5fa1907d97
commit
faa9fbe982
1 changed files with 5 additions and 9 deletions
|
@ -60,15 +60,11 @@ class PayUponInvoiceHelper {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( ! $this->is_valid_product() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! $this->is_valid_currency() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ! $this->checkout_helper->is_checkout_amount_allowed( 5, 2500 ) ) {
|
||||
if (
|
||||
! $this->is_valid_product()
|
||||
|| ! $this->is_valid_currency()
|
||||
|| ! $this->checkout_helper->is_checkout_amount_allowed( 5, 2500 )
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue