I am trying to upgrade a user programmatically and each time I do so, the payment_received email is sent out to the upgraded account.
Is there a way to suppress these? I tried
Thank you!
Is there a way to suppress these? I tried
$upgradeService->setSendAlert(false);
, but setSendAlert doesn't seem to be valid.
PHP:
$upgradeService = $app->service('XF:User\Upgrade', $userUpgrade, $username);
$upgradeService->setEndDate($timestamp);
$upgradeService->upgrade();
Thank you!