Documentation

sale.paymentItemBasket.update

Scope: catalog Permissions to execute: for all

sale.paymentItemBasket.update(id, fields)

Method updates binding fields for payment and shopping cart.

Parameters

ParameterType Description
idinteger Payment and shopping cart binding ID.
fieldsobject Fields, corresponding to available list of fields.


Example

BX24.callMethod(
	'sale.paymentItemBasket.update', 
	{
		id: 105,
		fields: {	      
			quantity: 1,
			xmlId: 111111111
		}
	}, 
	function(result)
	{
		if(result.error())
			console.error(result.error().ex);
		else
			console.log(result.data());
});

© «Bitrix24», 2001-2024