1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
servicehandler.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\PaySystem;
4
5use Bitrix\Main\Request;
6use Bitrix\Sale\Payment;
7use Bitrix\Sale\Services\Base\RestrictionInfo;
8use Bitrix\Sale\Services\Base\RestrictionInfoCollection;
9use Bitrix\Sale\Services\PaySystem\Restrictions\RestrictableServiceHandler;
10use Bitrix\Sale\Services\PaySystem\Restrictions\RestrictionCurrencyTrait;
11
13{
15
19 static public function getIndicativeFields()
20 {
21 return array();
22 }
23
29 public static function isMyResponse(Request $request, $paySystemId)
30 {
31 $fields = static::getIndicativeFields();
32
33 if (!is_array($fields) || empty($fields))
34 return false;
35
37
38 foreach ($fields as $key => $value)
39 {
40 if (!$isAssociate && !isset($request[$value]))
41 return false;
42
43 if ($isAssociate && (!isset($request[$key]) || is_null($value) || ($value != $request[$key])))
44 return false;
45 }
46
47 return static::isMyResponseExtended($request, $paySystemId);
48 }
49
55 protected static function isMyResponseExtended(Request $request, $paySystemId)
56 {
57 return true;
58 }
59
65 public abstract function processRequest(Payment $payment, Request $request);
66
73 {
74 return '';
75 }
76
81 public abstract function getPaymentIdFromRequest(Request $request);
82
87 public static function findMyDataRefundablePage(array $paySystemList)
88 {
89 return array();
90 }
91
98 {
99 $collection = new RestrictionInfoCollection();
100
101 $this->getRestrictionCurrency($collection);
102
103 return $collection;
104 }
105}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
Определения request.php:10
sendResponse(ServiceResult $result, Request $request)
Определения servicehandler.php:72
processRequest(Payment $payment, Request $request)
getPaymentIdFromRequest(Request $request)
static findMyDataRefundablePage(array $paySystemList)
Определения servicehandler.php:87
static isMyResponse(Request $request, $paySystemId)
Определения servicehandler.php:29
static isMyResponseExtended(Request $request, $paySystemId)
Определения servicehandler.php:55
Определения payment.php:19
static IsAssociativeArray($ar)
Определения helper.php:6
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
getRestrictionCurrency(RestrictionInfoCollection $collection)
Определения restrictioncurrencytrait.php:12
$payment
Определения payment.php:14
if(empty($signedUserToken)) $key
Определения quickway.php:257
$fields
Определения yandex_run.php:501