iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api
IPaymentProcessor Interface
IPaymentProcessor Methods
CanPaySilently Method
CollectData Method
EmergencyCancelPayment Method
EmergencyCancelPaymentSilently Method
OnPaymentAdded Method
OnPreliminaryPaymentEditing Method
Pay Method
PaySilently Method
ReturnPayment Method
ReturnPaymentWithoutOrder Method

# IPaymentProcessor EmergencyCancelPaymentSilently Method

Perform silent emergency cancel payment operation.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    void EmergencyCancelPaymentSilently(
    	decimal sum,
    	Guid? orderId,
    	Guid paymentTypeId,
    	Guid transactionId,
    	IPointOfSale pointOfSale,
    	IUser cashier,
    	IReceiptPrinter printer,
    	IPaymentDataContext context
    )

#### Parameters

sum
  Type: System
  Decimal
  Sum to return.
orderId
  Type: System
  Nullable
  Guid
  Order Id.
paymentTypeId
  Type: System
  Guid
  Payment type Id.
transactionId
  Type: System
  Guid
  Transaction Id.
pointOfSale
  Type: Resto.Front.Api.Data.Organization
  IPointOfSale
  Point of sale.
cashier
  Type: Resto.Front.Api.Data.Security
  IUser
  User handling payments and receipts.
printer
  Type: Resto.Front.Api
  IReceiptPrinter
  IReceiptPrinter object to perform print actions. Should not be used after method returns.
context
  Type: Resto.Front.Api
  IPaymentDataContext
  IPaymentDataContext object to work with plugin saved data in iiko storage.

Exceptions

Exception | Condition
--- | ---
PaymentActionCancelledException | Exception to notify that payment actions was cancelled with no message shown.
PaymentActionFailedException | Exception to notify that cancel payment actions was not successful.

See Also

#### Reference

IPaymentProcessor Interface
Resto.Front.Api Namespace