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/cvetdv.ru/bitrix/modules/yandex.market/lib/trading/service/turbo/ |
Upload File : |
<?php namespace Yandex\Market\Trading\Service\Turbo; use Yandex\Market; use Bitrix\Main; class PaySystem { use Market\Reference\Concerns\HasLang; const TYPE_PREPAID = 'PREPAID'; const TYPE_POSTPAID = 'POSTPAID'; protected $provider; protected static function includeMessages() { Main\Localization\Loc::loadMessages(__FILE__); } public function __construct(Provider $provider) { $this->provider = $provider; } public function getTypeVariants() { return [ static::TYPE_PREPAID, static::TYPE_POSTPAID, ]; } public function getTypeTitle($type, $version = '') { $typeKey = Market\Data\TextString::toUpper($type); $versionSuffix = ($version !== '' ? '_' . $version : ''); return static::getLang('TRADING_SERVICE_TURBO_PAY_SYSTEM_TYPE_' . $typeKey . $versionSuffix, null, $type); } public function isPrepaid($type) { return $type === static::TYPE_PREPAID; } }