iikoFront Api V7Preview7 Code Reference
iikoFront Api V7Preview7 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 ReturnPaymentWithoutOrder Method

Perform return payment sum without iikoFront order.

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

    void ReturnPaymentWithoutOrder(
    	decimal sum,
    	Guid? orderId,
    	Guid paymentTypeId,
    	IPointOfSale pointOfSale,
    	IUser cashier,
    	IReceiptPrinter printer,
    	IViewManager viewManager
    )

#### Parameters

sum
  Type: System
  Decimal
  Sum to return.
orderId
  Type: System
  Nullable
  Guid
  When returning products from a past order, this parameter contains id of that order. If returning products are not from a past order, but just arbitrary products selected by user, this parameter is null.
paymentTypeId
  Type: System
  Guid
  Payment type 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.

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