Click or drag to resize

IPaymentProcessorCollectData Method

Perform data collect operation on payment item selected.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
void CollectData(
	Guid orderId,
	Guid paymentTypeId,
	IUser cashier,
	IReceiptPrinter printer,
	IViewManager viewManager,
	IPaymentDataContext context
)

Parameters

orderId
Type: SystemGuid
Order Id.
paymentTypeId
Type: SystemGuid
Payment type Id.
cashier
Type: Resto.Front.Api.Data.SecurityIUser
User handling payments and receipts.
printer
Type: Resto.Front.ApiIReceiptPrinter
IReceiptPrinterObject to perform print actions. Should not be used after method returns.
viewManager
Type: Resto.Front.Api.UIIViewManager
IViewManagerObject to show dialogs. Should not be used after method returns.
context
Type: Resto.Front.ApiIPaymentDataContext
IPaymentDataContextObject 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.
Remarks
Called when plug-in payment item is going to be added to the order.
See Also