1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
payment.php
См. документацию.
1
<?
2
3
CCurrencyLang::disableUseHideZero
();
4
5
$orderId
= (int)
$GLOBALS
[
"SALE_INPUT_PARAMS"
][
"ORDER"
][
"ID"
];
6
if
(
$orderId
> 0)
7
{
9
$order
=
\Bitrix\Sale\Order::load
(
$orderId
);
10
if
(
$order
)
11
{
13
$paymentCollection
=
$order
->getPaymentCollection();
14
if
(
$paymentCollection
)
15
{
17
foreach
(
$paymentCollection
as
$payment
)
18
{
19
if
(!
$payment
->isInner())
20
break
;
21
}
22
if
(
$payment
)
23
{
24
$context
=
\Bitrix\Main\Application::getInstance
()->getContext();
25
$service
=
\Bitrix\Sale\PaySystem\Manager::getObjectById
(
$payment
->getPaymentSystemId());
26
if
(
$_REQUEST
[
'pdf'
] &&
$_REQUEST
[
'GET_CONTENT'
] ==
'Y'
)
27
{
28
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest(), \
Bitrix
\Sale\PaySystem\BaseServiceHandler::STRING);
29
if
(
$result
->isSuccess())
30
return
$result
->getTemplate();
31
}
32
33
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest());
34
}
35
CCurrencyLang::enableUseHideZero();
36
}
37
}
38
}
39
?>
Bitrix\Main\Application\getInstance
static getInstance()
Определения
application.php:98
Bitrix\Sale\OrderBase\load
static load($id)
Определения
orderbase.php:245
Bitrix\Sale\PaySystem\Manager\getObjectById
static getObjectById($id)
Определения
manager.php:719
CCurrencyLang\disableUseHideZero
static disableUseHideZero()
Определения
currency_lang.php:56
$orderId
$orderId
Определения
payment.php:5
$_REQUEST
$_REQUEST["admin_mnu_menu_id"]
Определения
get_menu.php:8
$result
$result
Определения
get_property_values.php:14
$context
$context
Определения
csv_new_setup.php:223
Bitrix
$payment
$payment
Определения
payment.php:14
$order
$order
Определения
payment.php:8
$paymentCollection
$paymentCollection
Определения
payment.php:11
$service
$service
Определения
payment.php:18
$GLOBALS
$GLOBALS['_____370096793']
Определения
update_client.php:1
bitrix
modules
sale
payment
bill_en
payment.php
Создано системой
1.14.0