E
E
Ex1st2021-04-13 16:01:59
1C-Bitrix
Ex1st, 2021-04-13 16:01:59

How to check for internal account usage?

It is necessary to perform an action when using an internal account in an order. I catch the order recalculation

event , and when it comes to checking, mysticism begins.

foreach ($paymentCollection as $item) {
        var_dump($item->isInner());
    }

Returns false, but if we add exit
foreach ($paymentCollection as $item) {
        var_dump($item->isInner());
       exit;
    }

Returns true. And accordingly, it is impossible to check for initialization of the internal. accounts.

What can be wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question