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 OnPaymentAdded Method

Perform order edit operation after payment is added to order (on preliminary payments page or on payment page).

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

    void OnPaymentAdded(
    	IOrder order,
    	IPaymentItem paymentItem,
    	IUser cashier,
    	IOperationService operationService,
    	IReceiptPrinter printer,
    	IViewManager viewManager,
    	IPaymentDataContext context
    )

#### Parameters

order
  Type: Resto.Front.Api.Data.Orders
  IOrder
  Order.
paymentItem
  Type: Resto.Front.Api.Data.Payments
  IPaymentItem
  Added payment item.
cashier
  Type: Resto.Front.Api.Data.Security
  IUser
  User handling payments and receipts.
operationService
  Type: Resto.Front.Api
  IOperationService
  Allows to edit entities within this method. Should not be used after method returns.
printer
  Type: Resto.Front.Api
  IReceiptPrinter
  IReceiptPrinter object to perform print actions. Should not be used after method returns.
viewManager
  Type: Resto.Front.Api.UI
  IViewManager
  IViewManager object to show dialogs. 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 were cancelled with no message shown.
PaymentActionFailedException | Exception to notify that payment actions were not successful.

See Also

#### Reference

IPaymentProcessor Interface
Resto.Front.Api Namespace