Documentation

sale.paymentItemBasket.add

Scope: catalog Permissions to execute: for all

sale.paymentItemBasket.add(fields)

Adds payment binding to shopping cart.

Parameters

ParameterType Description
fieldsobject Fields, corresponding to available list of fields.

Examples

BX24.callMethod(
	'sale.paymentItemBasket.add', 
	{
		fields: {
			quantity: 1,
			basketId: 1128,
			paymentId: 212
		}
	},
	function(result)
	{
		if (result.error())
			console.error(result.error().ex);
		else
			console.log(result.data());
});

© «Bitrix24», 2001-2024