Documentation

sale.paysystem.handler.update

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

This method updates REST-handler.

Parameters

Parameter Description Available from version
fiedls Set of fields (array type array("field":"value"[, ...])), containing values, describing the handler. Available fields:
  • NAME - Name of handler
  • 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");
		}
	}
);


© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020