Documentation

sale.paysystem.pay.invoice

sale.paysystem.pay.invoice(
 invoice_id,
 bx_rest_handler
)

This method pays invoices by using specific handler (called after response from payment system is processed):

Parameters

Method Description Available from version
invoice_id Invoice ID
bx_rest_handler REST-handler code

Example

var id = prompt("Enter invoice ID");
var handler_code = prompt("Enter REST-handler code");

BX24.callMethod('sale.paysystem.pay.invoice', {"invoice_id": id, "bx_rest_handler": handler_code},
	function(result)
	{
		if(result.error())
			console.error(result.error());
		else
		{
			console.dir(result.data());
		}
	}
);


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