Automattic\WooCommerce\Internal\Orders
IppFunctions::is_store_in_person_payment_eligible()
Returns if store is eligible to accept In-Person Payments.
Метод класса: IppFunctions{}
Хуков нет.
Возвращает
true|false
. true if store is eligible, false otherwise
Использование
$result = IppFunctions::is_store_in_person_payment_eligible(): bool;
Код IppFunctions::is_store_in_person_payment_eligible() IppFunctions::is store in person payment eligible WC 8.1.1
public static function is_store_in_person_payment_eligible(): bool { $is_store_usa_based = self::has_store_specified_country_currency( 'US', 'USD' ); $is_store_canada_based = self::has_store_specified_country_currency( 'CA', 'CAD' ); return $is_store_usa_based || $is_store_canada_based; }