1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
payment.php
См. документацию.
1
<?
2
3
CCurrencyLang::disableUseHideZero
();
4
5
$orderId
= (int)
$GLOBALS
[
"SALE_INPUT_PARAMS"
][
"ORDER"
][
"ID"
];
6
7
if
(
$orderId
)
8
{
10
$order
=
\Bitrix\Sale\Order::load
(
$orderId
);
11
if
(
$order
)
12
{
14
$paymentCollection
=
$order
->getPaymentCollection();
15
if
(
$paymentCollection
)
16
{
18
foreach
(
$paymentCollection
as
$payment
)
19
{
20
if
(!
$payment
->isInner())
21
break
;
22
}
23
if
(
$payment
)
24
{
25
$context
=
\Bitrix\Main\Application::getInstance
()->getContext();
26
$service
=
\Bitrix\Sale\PaySystem\Manager::getObjectById
(
$payment
->getPaymentSystemId());
27
if
(
$_REQUEST
[
'pdf'
] &&
$_REQUEST
[
'GET_CONTENT'
] ==
'Y'
)
28
{
29
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest(), \
Bitrix
\Sale\PaySystem\BaseServiceHandler::STRING);
30
if
(
$result
->isSuccess())
31
return
$result
->getTemplate();
32
}
33
34
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest());
35
}
36
CCurrencyLang::enableUseHideZero();
37
}
38
}
39
}
40
?>
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
ru
payment
bill_ua
payment.php
Создано системой
1.14.0