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

No Hooks.

Return

true|false. true if store is eligible, false otherwise

Usage

$result = IppFunctions::is_store_in_person_payment_eligible(): bool;

Code of IppFunctions::is_store_in_person_payment_eligible() WC 7.1.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;
}