File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/payment/assist/payment.php
Back
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); $entityId = (CSalePaySystemAction::GetParamValue("PAYMENT_ID") <> '') ? CSalePaySystemAction::GetParamValue("PAYMENT_ID") : $GLOBALS["SALE_INPUT_PARAMS"]["PAYMENT"]["ID"]; list($orderId, $paymentId) = \Bitrix\Sale\PaySystem\Manager::getIdsByPayment($entityId); /** @var \Bitrix\Sale\Order $order */ $order = \Bitrix\Sale\Order::load($orderId); /** @var \Bitrix\Sale\PaymentCollection $paymentCollection */ $paymentCollection = $order->getPaymentCollection(); /** @var \Bitrix\Sale\Payment $payment */ $payment = $paymentCollection->getItemById($paymentId); $data = \Bitrix\Sale\PaySystem\Manager::getById($payment->getPaymentSystemId()); $service = new \Bitrix\Sale\PaySystem\Service($data); $service->initiatePay($payment);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings