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
> 0)
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
24
if
(
$payment
)
25
{
26
$context
=
\Bitrix\Main\Application::getInstance
()->getContext();
27
$service
=
\Bitrix\Sale\PaySystem\Manager::getObjectById
(
$payment
->getPaymentSystemId());
28
if
(
$_REQUEST
[
'pdf'
] &&
$_REQUEST
[
'GET_CONTENT'
] ==
'Y'
)
29
{
30
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest(), \
Bitrix
\Sale\PaySystem\BaseServiceHandler::STRING);
31
if
(
$result
->isSuccess())
32
return
$result
->getTemplate();
33
}
34
35
$result
=
$service
->initiatePay(
$payment
,
$context
->getRequest());
36
}
37
CCurrencyLang::enableUseHideZero();
38
}
39
}
40
}
41
?>
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
payment.php
Создано системой
1.14.0