Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/seo/lib/checkout/ |
Upload File : |
<?php namespace Bitrix\Seo\Checkout; /** * Class Service * @package Bitrix\Seo\Checkout */ class Service implements IService { public const GROUP = 'checkout'; public const TYPE_YANDEX = 'yandex'; public const TYPE_YOOKASSA = 'yookassa'; public const TYPE_TBANK_BUSINESS = 'tbankbusiness'; /** * Get instance. * * @return static */ public static function getInstance(): static { static $instance = null; if ($instance === null) { $instance = new static(); } return $instance; } /** * @param string $type * @return string */ public static function getEngineCode($type): string { return static::GROUP . '.' . $type; } /** * @return array */ public static function getTypes(): array { return [ static::TYPE_YANDEX, static::TYPE_YOOKASSA, static::TYPE_TBANK_BUSINESS, ]; } /** * Get auth adapter. * * @param string $type Type. * @return AuthAdapter * @throws \Bitrix\Main\SystemException */ public static function getAuthAdapter($type): AuthAdapter { return AuthAdapter::create($type)->setService(static::getInstance()); } }