DiscountsUtil
in package
The DiscountsUtil class provides utilities to assist discounts calculation and validation.
Table of Contents
- is_coupon_emails_allowed() : bool
- Checks if the given email address(es) matches the ones specified on the coupon.
Methods
is_coupon_emails_allowed()
Checks if the given email address(es) matches the ones specified on the coupon.
public
static is_coupon_emails_allowed(array<string|int, mixed> $check_emails, array<string|int, mixed> $restrictions) : bool
Parameters
- $check_emails : array<string|int, mixed>
-
Array of customer email addresses.
- $restrictions : array<string|int, mixed>
-
Array of allowed email addresses.