1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
result_rec.php
См. документацию.
1<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><?
2
3use \Bitrix\Sale\Order;
4
5$request = \Bitrix\Main\Application::getInstance()->getContext()->getRequest();
6
7$entityId = intval($request->get("LMI_PAYMENT_NO"));
8list($orderId, $paymentId) = \Bitrix\Sale\PaySystem\Manager::getIdsByPayment($entityId);
9
10if ($orderId > 0)
11{
14 if ($order)
15 {
17 $paymentCollection = $order->getPaymentCollection();
18 if ($paymentCollection && $paymentId > 0)
19 {
21 $payment = $paymentCollection->getItemById($paymentId);
22 if ($payment)
23 {
25 if ($service)
26 $service->processRequest($request);
27 }
28 }
29 }
30}
31?>
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
static getInstance()
Определения application.php:98
static load($id)
Определения orderbase.php:245
static getObjectById($id)
Определения manager.php:719
$orderId
Определения payment.php:5
$payment
Определения payment.php:14
$order
Определения payment.php:8
$paymentCollection
Определения payment.php:11
$service
Определения payment.php:18
$entityId
Определения payment.php:4
die
Определения quickway.php:367