Y
Y
Yuriy2019-08-15 14:33:25
1C-Bitrix
Yuriy, 2019-08-15 14:33:25

Bitrix LOCK_CHANGE_PAYSYSTEM payment change after placing an order?

Tell me, where is this parameter configured in Bitrix?
LOCK_CHANGE_PAYSYSTEM
to prevent users from changing payment after checkout.
in templates like this

if ($payment['PAID'] !== 'Y' && $order['ORDER']['LOCK_CHANGE_PAYSYSTEM'] !== 'Y')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2019-08-15
@yous

There is a component parameter RESTRICT_CHANGE_PAYSYSTEM
In the class.php of the component, the check is performed as follows:

if (
  is_array($this->arParams['RESTRICT_CHANGE_PAYSYSTEM'])
  && in_array($orderFields['STATUS_ID'], $this->arParams['RESTRICT_CHANGE_PAYSYSTEM'])
)
{
  $orderFields['LOCK_CHANGE_PAYSYSTEM'] = 'Y';
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question