Documentation

sale.paysystem.update

sale.paysystem.update(
   id,
   fiedls
)

This method edits payment system.

Parameters

Method Description Available from version
id Payment system ID
fiedls Set of fields (array type array("field":"value"[, ...])), containing values, describing payment system. Available fields:
  • NAME - name of system
  • PERSON_TYPE_ID - Payer type ID
  • BX_REST_HANDLER - Handler code in the system
  • ACTIVE - Payment system activity flag

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("Payment system is updated");
		}
	}
);


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