Method for sending an order check
[v8
]
Starting with version V8, you can set the method for sending an order check - ChequeAdditionalInfo, which is passed as an argument - SetChequeAdditionalInfo.
ChequeAdditionalInfo- information about the check.IOrder- order for which check information must be set.ICredentials- authentication data.
Example:
Operations.AddButtonToPaymentScreen(“Add Cheque”, false, true, x =>
{
var isChecked = !x.state.isChecked;
var caption = isChecked ? “Added Cheque” : “Add Cheque”;
var chequeAdditionalInfo = new ChequeAdditionalInfo(false, “+79998887766”, “mail@mail.com”, “”);
x.os.SetChequeAdditionalInfo(chequeAdditionalInfo, x.order, x.os.GetDefaultCredentials());
x.os.UpdatePaymentScreenButtonState(x.state.buttonId, caption, isChecked);
}, syrveIcon);