iikoFront Api V7 Code Reference
iikoFront Api V7 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 ReturnPayment Method

Perform return payment operation.

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

    void ReturnPayment(
    	decimal sum,
    	Guid? orderId,
    	Guid paymentTypeId,
    	Guid transactionId,
    	IPointOfSale pointOfSale,
    	IUser cashier,
    	IReceiptPrinter printer,
    	IViewManager viewManager,
    	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.
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 was cancelled with no message shown.
PaymentActionFailedException | Exception to notify that return payment actions was not successful.

See Also

#### Reference

IPaymentProcessor Interface
Resto.Front.Api Namespace