Documentation

sale.paysystem.pay.invoice

Scope: pay_system Permissions to execute: for all

Description

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

The method is used to pay invoice via specific handler (is 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

rel="example">var id = prompt("Enter invoice ID");
var handler_code = prompt("Enter the 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());
		}
	}
);


© «Bitrix24», 2001-2024