P
P
photosho2019-07-31 12:27:04
1C-Bitrix
photosho, 2019-07-31 12:27:04

Where are payment processors configured?

Where do the default values ​​come from in the "PS handler settings" block when editing the Payment system? Where can this be configured?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2019-07-31
@photosho

The default values ​​are specified in the .description.php file of the corresponding handler. For example, bill
payment system . The handler is located in the bitrix/modules/sale/handlers/paysystem/bill folder. If you open the .description.php file , you can see the $data array, which contains the "CODES" nested array. The latter describes the fields of the payment system. You can specify the "DEFAULT" parameter in the field.

"PAYMENT_DATE_INSERT" => array(
      "NAME" => Loc::getMessage("SALE_HPS_BILL_DATE"),
      "SORT" => 100,
      'GROUP' => 'PAYMENT',
      "DESCRIPTION" => Loc::getMessage("SALE_HPS_BILL_DATE_DESC"),
      'DEFAULT' => array(
        "PROVIDER_VALUE" => "DATE_BILL_DATE",
        "PROVIDER_KEY" => "PAYMENT"
      )
    ),

For this parameter, the default data source will be the PAYMENT object (payment), the DATE_BILL_DATE field.
"PAYMENT_DATE_PAY_BEFORE" => array(
      "NAME" => Loc::getMessage("SALE_HPS_BILL_PAY_BEFORE"),
      "DESCRIPTION" => Loc::getMessage("SALE_HPS_BILL_PAY_BEFORE_DESC"),
      "SORT" => 300,
      'GROUP' => 'PAYMENT',
      'DEFAULT' => array(
        "PROVIDER_VALUE" => "DATE_PAY_BEFORE",
        "PROVIDER_KEY" => "ORDER"
      )
    ),

In this example, the data source is ORDER (order), field DATE_PAY_BEFORE.
More details can be found in the documentation
https://dev.1c-bitrix.ru/user_help/store/sale/sett...
https://dev.1c-bitrix.ru/learning/course/index.php...
https ://dev.1c-bitrix.ru/learning/course/index.php...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question