Click or drag to resize

IPaymentProcessorOnPaymentDeleting Method

Notify about the removal of an external payment item from the order (on the payment page)

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

Parameters

order  IOrder
Order.
paymentItem  IPaymentItem
Deleting payment item.
cashier  IUser
User handling payments and receipts.
operationService  IOperationService
Allows to edit entities within this method. Should not be used after method returns.
printer  IReceiptPrinter
IReceiptPrinter object to perform print actions. Should not be used after method returns.
viewManager  IViewManager
IViewManager object to show dialogs. Should not be used after method returns.
context  IPaymentDataContext
IPaymentDataContext object to work with plugin saved data in Syrve storage.
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