Y
Y
Yuri Voronin2020-09-11 12:13:37
1C-Bitrix
Yuri Voronin, 2020-09-11 12:13:37

Why, after a successful payment through the Yandex Checkout module, does the payment flag on the site with cms 1C-Bitrix not change?

Hello.
There is a payment system

WH-GKHSvVlkMk2aIhty8sgqKlV5gFdh2afeqb3lTxY7D8KrwTnRSn3L5y3AzzC-rBxAPKWAoBFjW2eMuDTDJrQ ==? Uid = 0 & filename = 2020-09-11_12-06-22.png & disposition = inline & hash = & limit = 0 & content_type = image% 2Fpng & tknv = v2 & owner_uid = 311365562 & size = 2048x2048

Custom checkout. The payment is done like this:

$paymentCollection = $order->getPaymentCollection();
foreach ($paymentCollection as $item) {
    $arResult["PAYMENT"] = $item->getPaymentSystemName();
    $service = Sale\PaySystem\Manager::getObjectById($item->getPaymentSystemId());
    $context  = \Bitrix\Main\Application::getInstance()->getContext();

    $initResult = $service->initiatePay($item, $context->getRequest(), \Bitrix\Sale\PaySystem\BaseServiceHandler::STRING);
    $arResult["PAYMENT_HTML"] = $initResult->getTemplate();
}


It all works. there is a transition to payment, payment works, but after successful payment in the admin panel, the order remains unpaid.

Checkbox for payment is worth it.
ls0c5 - jXQJvKfsw4HeNHYBanJWD8AjLKz98omNTl7WzVXi0KDtVdbzN603NDYtIm_ApLRcbgGwomj7KGcqI0g == uid = 0 & filename = 2020-09-11_12-10-37.png & disposition = inline & hash = & limit = 0 & content_type = image% 2Fpng & tknv = v2 & owner_uid = 311365562 & size = 2048x2048?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael Kim, 2020-09-14
@devjob

In the settings of the Online Store module, there is a Process Automation tab.
An item with a change in the status of the order after receipt of the full cost of payment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question