R
R
Ruslan Absalyamov2018-07-20 12:36:29
1C-Bitrix
Ruslan Absalyamov, 2018-07-20 12:36:29

How to get value from PS setting?

In Shop->Settings->Payment systems there is a "Sberbank receipt". It has default settings that can be driven into the account.
5b51ab4361fbd819511481.png
I need to get them all, how can I do this?
I just haven't found an answer to my question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Absalyamov, 2018-07-23
@rusline18

Sale\BusinessValue::getConsumerCodePersonMapping()

S
Sergey Panteleev, 2018-07-20
@s_panteleev

First, get the values ​​of all business senses

<?php

\Bitrix\Main\Loader::includeModule('sale');
$list = \CSalePaySystemAction::getParamsByConsumer();

and then choose the options you need:
<?php

$fio = $list['BUYER_PERSON_FIO'];
$zip = $list['BUYER_PERSON_ZIP'];
// итд

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question