Automattic\WooCommerce\Internal\Orders
IppFunctions::is_store_in_person_payment_eligible
Returns if store is eligible to accept In-Person Payments.
Method of the class: IppFunctions{}
No Hooks.
Returns
true|false. true if store is eligible, false otherwise
Usage
$result = IppFunctions::is_store_in_person_payment_eligible(): bool;
IppFunctions::is_store_in_person_payment_eligible() IppFunctions::is store in person payment eligible code WC 10.8.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;
}