getPaymentCollection(); $payment = $paymentCollection[0]; $paysystem = $payment->getPaymentSystemId(); $qrPaymentLink = 'https://qr.nspk.ru/AS10002UL0BIQ2EM9IVO2IBNHSFV5FIC?type=01&bank=100000000111&crc=8DD4'; if ($paysystem == 3) { /* $client = new Client(); $client->setAuth('625311', 'live_9QzwBgCJBmuan1SdM5bGRSqG6BQONVzGlbCIMjcvDYc'); $idempotenceKey = uniqid('', true); $yandex = $client->createPayment( array( 'amount' => array( 'value' => $order->getPrice(), 'currency' => 'RUB', ), 'payment_method_data' => array( 'type' => 'bank_card', ), 'confirmation' => array( 'type' => 'redirect', 'return_url' => 'https://ttepla.com/', ), 'metadata' => array ( "order_id" => $order->getId() ), 'description' => 'Заказ №' . $order->getId() ), $idempotenceKey ); LocalRedirect($yandex->confirmation->confirmation_url); */ //LocalRedirect($qrPaymentLink); header("Location: {$qrPaymentLink}"); } elseif ($paysystem == 2) { $service = Sale\PaySystem\Manager::getObjectById($paysystem); $context = \Bitrix\Main\Application::getInstance()->getContext(); $service ->initiatePay( $payment , $context ->getRequest()); $initResult = $service->initiatePay($payment, $context->getRequest(), \Bitrix\Sale\PaySystem\BaseServiceHandler::STRING); $buffered_output = $initResult->getTemplate(); } ?>