Click or drag to resize

IExternalPaymentProcessor.OnPaymentAdded Method

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

Namespace:  Resto.Front.Api.V5
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax
C#
void OnPaymentAdded(
	IOrder order,
	IPaymentItem paymentItem,
	IUser cashier,
	IOperationService operationService,
	IReceiptPrinter printer,
	IViewManager viewManager,
	IPaymentDataContext context,
	IProgressBar progressBar
)

Parameters

order
Type: Resto.Front.Api.V5.Data.Orders.IOrder
Order.
paymentItem
Type: Resto.Front.Api.V5.Data.Payments.IPaymentItem
Added payment item.
cashier
Type: Resto.Front.Api.V5.Data.Security.IUser
User handling payments and receipts.
operationService
Type: Resto.Front.Api.V5.IOperationService
Allows to edit entities within this method. Should not be used after method returns.
printer
Type: Resto.Front.Api.V5.IReceiptPrinter
IReceiptPrinter object to perform print actions. Should not be used after method returns.
viewManager
Type: Resto.Front.Api.V5.UI.IViewManager
IViewManager object to show dialogs. Should not be used after method returns.
context
Type: Resto.Front.Api.V5.IPaymentDataContext
IPaymentDataContext object to work with plugin saved data in iiko storage.
progressBar
Type: Resto.Front.Api.V5.UI.IProgressBar
Object, that provides communication with progress bar.
Exceptions
ExceptionCondition
PaymentActionCancelledExceptionException to notify that payment actions were cancelled with no message shown.
PaymentActionFailedExceptionException to notify that payment actions were not successful.
See Also