Click or drag to resize

IPaymentProcessorCollectData Method

Perform data collect operation on payment item selected.

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

Parameters

orderId  Guid
Order Id.
paymentTypeId  Guid
Payment type Id.
cashier  IUser
User handling payments and receipts.
printer  IReceiptPrinter
IReceiptPrinterObject to perform print actions. Should not be used after method returns.
viewManager  IViewManager
IViewManagerObject to show dialogs. Should not be used after method returns.
context  IPaymentDataContext
IPaymentDataContextObject to work with plugin saved data in Syrve 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