Method of Sending Receipt

Tags: v8

Starting from version V8, you can set the method of sending the order receipt - ChequeAdditionalInfo, which is passed as an argument - SetChequeAdditionalInfo.

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, "+999 555 123 4567", "mail@mail.com", "");

    x.os.SetChequeAdditionalInfo(chequeAdditionalInfo, x.order, x.os.GetDefaultCredentials());
    x.os.UpdatePaymentScreenButtonState(x.state.buttonId, caption, isChecked);
}, SyrveIcon);