Documentation

sale.paysystem.add

sale.paysystem.add(
 fiedls
)

This method adds payment system.

Parameters:

Method Description Available from version
fiedls Set of fields (type of array 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

BX24.callMethod(
	"sale.paysystem.add",
	{
		'NAME' : 'Payment system with REST', 					// Name of the payment system 
		'PERSON_TYPE_ID' : 1, 									// Payer type ID 
		'ACTIVE' : 'Y',											// Payment system activity flag
		'BX_REST_HANDLER' : 'resthandlercode', 					// Handler code in the system
		'SETTINGS' : { 											// Handler settings for this payment system
			'REST_SHOP_ID' : {									// Parameter code
				'TYPE' : 'VALUE',								// Value type
				'VALUE' : '111111111'							// Value
			},
			'REST_SCID' : {
				'TYPE' : 'VALUE',
				'VALUE' : '2222222'
			}
		}
	},
	function(result)
	{
		if(result.error())
			console.error(result.error());
		else
			console.info("Payment system is added with ID" + result.data());
	}
);

Possible values

Possible TYPE values
ORDER Parameters
PROPERTY Invoice properties
PAYMENT Payment
USER User
VALUE String type value
INPUT Checkbox

Possible VALUEs
ORDER ID: ID,
ACCOUNT_NUMBER: Order number,
ORDER_TOPIC: Topic,
DATE_INSERT: Date of order,
DATE_INSERT_DATE: Date of order (without time),
DATE_BILL: Data and time when issued,
DATE_BILL_DATE: Date when issued,
DATE_PAY_BEFORE: Due date,
SHOULD_PAY: Invoice amount,
CURRENCY: Currency,
PRICE: Order price,
PRICE_DELIVERY: Delivery price,
DISCOUNT_VALUE: Discount amount,
USER_ID: Buyer code,
PAY_SYSTEM_ID: Payment system code,
DELIVERY_ID: Delivery service code,
TAX_VALUE: Tax,
USER_DESCRIPTION: Comment
PAYMENT ID: ID
ACCOUNT_NUMBER: Payment number,
DATE_BILL: Data and time when issued,
DATE_BILL_DATE: Data when issued (without time),
SUM: Invoice amount,
CURRENCY: Currency,
USER ID: Buyer code,
LOGIN: Login,
NAME: Name,
SECOND_NAME: Middle name,
LAST_NAME: Last name,
EMAIL: EMail,
PERSONAL_PROFESSION: professional occupation,
PERSONAL_WWW: Personal website,
PERSONAL_ICQ: ICQ number,
PERSONAL_GENDER: Gender,
PERSONAL_FAX: Fax number,
PERSONAL_MOBILE: Telephone number,
PERSONAL_STREET: Address,
PERSONAL_MAILBOX: Mailbox,
PERSONAL_CITY: City,
PERSONAL_STATE: State,
PERSONAL_ZIP: Zip code,
PERSONAL_COUNTRY: Country,
WORK_COMPANY: Company,
WORK_DEPARTMENT: Department,
WORK_POSITION: Position,
WORK_WWW: Company website,
WORK_PHONE: Work telephone,
WORK_FAX: Work fax,
WORK_STREET: Company address,
WORK_MAILBOX: Work mailbox,
WORK_CITY: Company city,
WORK_STATE: Company state,
WORK_ZIP: Company index,
WORK_COUNTRY: Company country



User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2019, «Bitrix Inc.», 2019