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();
15
foreach
(
$paymentCollection
as
$payment
)
16
{
17
if
(!
$payment
->isInner())
18
break
;
19
}
20
if
(
$payment
)
21
{
22
$context
=
\Bitrix\Main\Application::getInstance
()->getContext();
23
$service
=
\Bitrix\Sale\PaySystem\Manager::getObjectById
(
$payment
->getPaymentSystemId());
24
if
(
$_REQUEST
[
'pdf'
] &&
$_REQUEST
[
'GET_CONTENT'
] ==
'Y'
)
25
{
26
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest(), \
Bitrix
\Sale\PaySystem\BaseServiceHandler::STRING);
27
if
(
$result
->isSuccess())
28
return
$result
->getTemplate();
29
}
30
31
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest());
32
}
33
CCurrencyLang::enableUseHideZero();
34
}
35
}
36
?>
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
de
payment
bill_de
payment.php
Создано системой
1.14.0