Documentation

sale.paysystem.handler.update

Scope: pay_system Permissions to execute: for all

Description

sale.paysystem.handler.update (
   id,
   fiedls
)

The method updates REST handler.

Parameters

Parameter Description Available from version
fiedls Set of fields(array type array("field":"value"[, ...])), containing values that describe the handler. Available fields:
  • NAME - Handler name
  • CODE - Unique handler code in the system
  • SETTINGS - Handler settings
  • SORT - Sorting

Example

var id = prompt("Enter ID");
var name = prompt("Enter name");

BX24.callMethod('sale.paysystem.handler.update', {"id": id, "fields": {NAME : name}},
	function(result)
	{
		if(result.error())
			console.error(result.error());
		else
		{
			console.info("Handler is updated");
		}
	}
);


© «Bitrix24», 2001-2024