Click or drag to resize

IExternalPaymentProcessorCollectData Method

Perform data collect operation on payment item selected.

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

Parameters

orderId
Type: SystemGuid
Order Id.
paymentTypeId
Type: SystemGuid
Payment type Id.
cashier
Type: Resto.Front.Api.V4.Data.SecurityIUser
User handling payments and receipts.
printer
Type: Resto.Front.Api.V4IReceiptPrinter
IReceiptPrinterObject to perform print actions. Should not be used after method returns.
viewManager
Type: Resto.Front.Api.V4.UIIViewManager
IViewManagerObject to show dialogs. Should not be used after method returns.
context
Type: Resto.Front.Api.V4IPaymentDataContext
IPaymentDataContextObject to work with plugin saved data in iiko storage.
progressBar
Type: Resto.Front.Api.V4.UIIProgressBar
Object, that provides communication with progress bar.
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