Click or drag to resize

IExternalPaymentProcessorCollectData Method

Perform data collect operation on payment item selected.

Namespace:  Resto.Front.Api.V5
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.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.V5.Data.SecurityIUser
User handling payments and receipts.
printer
Type: Resto.Front.Api.V5IReceiptPrinter
IReceiptPrinterObject to perform print actions. Should not be used after method returns.
viewManager
Type: Resto.Front.Api.V5.UIIViewManager
IViewManagerObject to show dialogs. Should not be used after method returns.
context
Type: Resto.Front.Api.V5IPaymentDataContext
IPaymentDataContextObject to work with plugin saved data in iiko storage.
progressBar
Type: Resto.Front.Api.V5.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