Automattic\WooCommerce\Internal\Orders

IppFunctions::is_store_in_person_payment_eligible()public staticWC 1.0

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() WC 8.7.0

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;
}