1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
payment.php
См. документацию.
1
<?
if
(!defined(
"B_PROLOG_INCLUDED"
) || B_PROLOG_INCLUDED !==
true
)
die
();
2
3
$entityId
=
CSalePaySystemAction::GetParamValue
(
"ORDER_PAYMENT_ID"
);
4
list(
$orderId
, $paymentId) = \Bitrix\Sale\PaySystem\Manager::getIdsByPayment(
$entityId
);
5
6
if
(
$orderId
> 0)
7
{
9
$order
=
\Bitrix\Sale\Order::load
(
$orderId
);
10
if
(
$order
)
11
{
13
$paymentCollection
=
$order
->getPaymentCollection();
14
if
(
$paymentCollection
&& $paymentId > 0)
15
{
17
$payment
=
$paymentCollection
->getItemById($paymentId);
18
if
(
$payment
)
19
{
20
$service
=
\Bitrix\Sale\PaySystem\Manager::getObjectById
(
$payment
->getPaymentSystemId());
21
if
(
$service
)
22
$service
->initiatePay(
$payment
);
23
}
24
}
25
}
26
}
Bitrix\Sale\OrderBase\load
static load($id)
Определения
orderbase.php:245
Bitrix\Sale\PaySystem\Manager\getObjectById
static getObjectById($id)
Определения
manager.php:719
CAllSalePaySystemAction\GetParamValue
static GetParamValue($key, $defaultValue=null)
Определения
pay_system_action.php:76
$orderId
$orderId
Определения
payment.php:5
$payment
$payment
Определения
payment.php:14
$order
$order
Определения
payment.php:8
$paymentCollection
$paymentCollection
Определения
payment.php:11
$service
$service
Определения
payment.php:18
$entityId
$entityId
Определения
payment.php:4
die
die
Определения
quickway.php:367
bitrix
modules
sale
ru
payment
sberbank_new
payment.php
Создано системой
1.14.0