<?$APPLICATION->IncludeComponent("bitrix:sale.order.ajax", "uni_sale_order_ajax", Array( "PATH_TO_BASKET" => "/personal/cart/", // Страница корзины "PATH_TO_PERSONAL" => "/personal/order/", // Страница персонального раздела "PATH_TO_PAYMENT" => "/personal/order/payment/", // Страница подключения платежной системы "PATH_TO_AUTH" => "/personal/profile/", // Страница авторизации "PAY_FROM_ACCOUNT" => "N", // Позволять оплачивать с внутреннего счета "COUNT_DELIVERY_TAX" => "N", // Рассчитывать налог для доставки "COUNT_DISCOUNT_4_ALL_QUANTITY" => "N", // Рассчитывать скидку для каждой позиции (на все количество товара) "ONLY_FULL_PAY_FROM_ACCOUNT" => "N", // Позволять оплачивать с внутреннего счета только в полном объеме "ALLOW_AUTO_REGISTER" => "N", // Оформлять заказ с автоматической регистрацией пользователя "SEND_NEW_USER_NOTIFY" => "N", // Отправлять пользователю письмо, что он зарегистрирован на сайте "DELIVERY_NO_AJAX" => "Y", // Рассчитывать стоимость доставки сразу "DELIVERY_NO_SESSION" => "N", // Проверять сессию при оформлении заказа "TEMPLATE_LOCATION" => ".default", // Шаблон местоположения "DELIVERY_TO_PAYSYSTEM" => "d2p", // Последовательность оформления "SET_TITLE" => "Y", // Устанавливать заголовок страницы "USE_PREPAYMENT" => "N", // Использовать предавторизацию для оформления заказа (PayPal Express Checkout) "PROP_1" => "", // Не показывать свойства для типа плательщика "Физическое лицо" (s1) "PROP_2" => "", // Не показывать свойства для типа плательщика "Юридическое лицо" (s1) ), false ); ?> 

it seems correct, but it is paid from the internal account.
I even commented out the line //include($_SERVER["DOCUMENT_ROOT"].$templateFolder."/paysystem.php"); template.php //include($_SERVER["DOCUMENT_ROOT"].$templateFolder."/paysystem.php"); in the template.php template.php //include($_SERVER["DOCUMENT_ROOT"].$templateFolder."/paysystem.php");

UPD

 $arParams["PAY_FROM_ACCOUNT"] ="N" ; $arParams["COUNT_DELIVERY_TAX"] ="N"; $arParams["COUNT_DISCOUNT_4_ALL_QUANTITY"] = "N"; $arParams["ONLY_FULL_PAY_FROM_ACCOUNT"] ="N"; $arParams["DELIVERY_NO_AJAX"] = (($arParams["DELIVERY_NO_AJAX"] == "Y") ? "Y" : "N"); $arParams["USE_PREPAYMENT"] = $arParams["USE_PREPAYMENT"] == 'Y' ? 'Y' : 'N'; $arParams["DISPLAY_IMG_HEIGHT"] = Intval($arParams["DISPLAY_IMG_HEIGHT"]) <= 0 ? 90 : Intval($arParams["DISPLAY_IMG_HEIGHT"]); $arParams["DISPLAY_IMG_WIDTH"] = Intval($arParams["DISPLAY_IMG_WIDTH"]) <= 0 ? 90 : Intval($arParams["DISPLAY_IMG_WIDTH"]); 

I changed in the most native component of the bitrix. Nothing succeeded.

UPD from 21.12

  if($arResult["USER_VALS"]["CONFIRM_ORDER"] == "Y") { if(strlen($arResult["REDIRECT_URL"]) > 0) { ?> <script> //top.location.replace = '<?=CUtil::JSEscape($arResult["REDIRECT_URL"])?>'; window.top.location.href='<?=CUtil::JSEscape($arResult["REDIRECT_URL"])?>'; // Вот здесь, она за что отвечает? //setInterval("window.top.location.href='<?=CUtil::JSEscape($arResult["REDIRECT_URL"])?>';",2000); //--> </script> <? die(); } else include($_SERVER["DOCUMENT_ROOT"].$templateFolder."/confirm.php"); } 

    1 answer 1

    Payment from your account if the option PAY_FROM_ACCOUNT is disabled will not work, most likely you should look for 2 options

    1. you are watching the wrong component
    2. In one of the local modules or in init.php, events were created on the purchase in which the method CSaleUserAccount :: Withdraw or CSaleUserAccount :: Pay was applied manually.
    • in init.php looked, it is not. Rather was, but I removed it 3 months ago. - NNN
    • Next, I removed in the settings of the Bitrix module the path to the user handlers of payment systems: - NNN
    • also did not help. - NNN
    • can not find the user. - NNN
    • This is what you did - "I changed it in my own ... it's you in vain ... The problem is solved: You open the file of the page that is responsible for placing the order. See the name of the template, look for this template in the site template, check that it is him , do die (); if the page breaks - see. See result_modifier and component_epilog if they are. See js perhaps the handler's send button is different (can be tracked through the console of the browser. Find the component call, put debugging if nothing helps, look for CSaleUserAccount in all files. Will not work write not - help -. binliz