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 = ($request->get('custom') !== null) ? $request->get("custom") : $request->get("cm");
8
9list($orderId, $paymentId) = \Bitrix\Sale\PaySystem\Manager::getIdsByPayment($entityId);
10
11if ($orderId > 0)
12{
14 $order = Order::load($orderId);
15 if ($order)
16 {
18 $paymentCollection = $order->getPaymentCollection();
19 if ($paymentCollection && $paymentId > 0)
20 {
22 $payment = $paymentCollection->getItemById($paymentId);
23 if ($payment)
24 {
26 if ($service)
27 $service->processRequest($request);
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 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