19 if (!
Main\Loader::includeModule(
'seo'))
26 $hasAuth = $authAdapter->hasAuth();
32 $this->registerWebhooks($oauthService);
40 private function registerWebhooks(
Seo\
Checkout\
Services\AccountYookassa $oauthService): void
42 $registerPaymentSucceededResult = $oauthService->registerPaymentSucceededWebhook();
43 $registerPaymentCanceledWebhookResult = $oauthService->registerPaymentCanceledWebhook();
44 if ($registerPaymentSucceededResult->isSuccess() && $registerPaymentCanceledWebhookResult->isSuccess())
49 if (!$registerPaymentSucceededResult->isSuccess())
51 $this->
addErrors($registerPaymentSucceededResult->getErrors());
53 if (!$registerPaymentCanceledWebhookResult->isSuccess())
55 $this->
addErrors(($registerPaymentCanceledWebhookResult->getErrors()));
static set($moduleId, $name, $value="", $siteId="")