P
P
Paul_Morte2020-06-25 09:00:24
1C-Bitrix
Paul_Morte, 2020-06-25 09:00:24

How to track the event of full order payment in Bitrix?

Payment for the order will not occur immediately, but after confirmation of the configuration by the manager.
I can't find in the documentation the event that will be called when the order is paid in full.
Documentation

I'm using code pattern like this, but OnSaleOrderSaved is just about saving the order.

$eventManager = \Bitrix\Main\EventManager::getInstance();
$eventManager->addEventHandler('sale', 'OnSaleOrderSaved', 'OnSaleOrderSavedHandler');

function OnSaleOrderSavedHandler(\Bitrix\Main\Event $event) {
    $order = $event->getParameter('ENTITY');
    $oldValues = $event->getParameter('VALUES');
    $isNew = $event->getParameter('IS_NEW');
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2020-06-25
@gromdron

The documentation has Saving Order: Special Events , there is an OnSaleOrderPaid event. Vnem need to check - after changing the status, whether the order is paid in full or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question