Documentation

sale.paysystem.update

Scope: pay_system Permissions to execute: for all

Description

sale.paysystem.update(
   id,
   fiedls
)

The method edits payment system.

Parameters

Method Description Available from version
id Payment system identifier
fiedls Set of fields (array type array("field":"value"[, ...])), containing values that describe 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 active site flag
  • LOGOTYPE - Payment system logo (image in format Base64 Base64 — binary data encoding standard using 64 ASCII characters. Encoding character set includes numerical-text Latin characters A-Z, a-z and 0-9 (62 characters) and 2 additional characters depending on implementation system. Each 3 original bytes are encoded by 4 characters (increase by ¹⁄₃).

    Learn more...
    ). This field is available starting from version 20.0.550
  • NEW_WINDOW - Field, responsible for configuring "Open in new window" (default value - N). Available from version 20.100.0
  • DESCRIPTION - Payment system description. Available from version 22.600.0.

Example

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

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


© «Bitrix24», 2001-2024