Click or drag to resize

IPaymentProcessorPay Method

Perform payment operation.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
void Pay(
	decimal sum,
	IOrder order,
	IPaymentItem paymentItem,
	Guid transactionId,
	IPointOfSale pointOfSale,
	IUser cashier,
	IOperationService operationService,
	IReceiptPrinter printer,
	IViewManager viewManager,
	IPaymentDataContext context
)

Parameters

sum
Type: SystemDecimal
Sum to pay.
order
Type: Resto.Front.Api.Data.OrdersIOrder
Order.
paymentItem
Type: Resto.Front.Api.Data.PaymentsIPaymentItem
Payment item.
transactionId
Type: SystemGuid
Transaction Id.
pointOfSale
Type: Resto.Front.Api.Data.OrganizationIPointOfSale
Point of sale.
cashier
Type: Resto.Front.Api.Data.SecurityIUser
User handling payments and receipts.
operationService
Type: Resto.Front.ApiIOperationService
Allows to edit entities within this method. Should not be used after method returns.
printer
Type: Resto.Front.ApiIReceiptPrinter
IReceiptPrinter object to perform print actions. Should not be used after method returns.
viewManager
Type: Resto.Front.Api.UIIViewManager
IViewManager object to show dialogs. Should not be used after method returns.
context
Type: Resto.Front.ApiIPaymentDataContext
IPaymentDataContext object to work with plugin saved data in iiko storage.
Exceptions
ExceptionCondition
PaymentActionCancelledExceptionException to notify that payment actions was cancelled with no message shown.
PaymentActionFailedExceptionException to notify that payment actions was not successful.
See Also