function quickPRJGetYandexKassaLink($payment) { $objResponse = new xajaxResponse(); $bill = new billing(get_uid(false)); $billReserveId = $bill->checkoutOrder(); $sum = $bill->getRealPayedSum(); $payed_sum = $bill->getOrderPayedSum(); if ($sum > 0) { $_SESSION['quickprj_is_begin'] = 1; $yandex_kassa = new yandex_kassa(); $html_form = $yandex_kassa->render($sum, $bill->account->id, $payment, $billReserveId); $objResponse->script('$("quick_pro_div_wait_txt").set("html", \'' . $html_form . '\');'); $objResponse->script("\$('quick_pro_div_wait_txt').getElements('form')[0].submit();"); } return $objResponse; }