Click or drag to resize

IExternalPaymentProcessorPay Method

Perform payment operation.

Namespace:  Resto.Front.Api.V4
Assembly:  Resto.Front.Api.V4 (in Resto.Front.Api.V4.dll)
Syntax
C#
void Pay(
	decimal sum,
	Nullable<Guid> orderId,
	Guid paymentTypeId,
	Guid transactionId,
	IUser cashier,
	IReceiptPrinter printer,
	IViewManager viewManager,
	IPaymentDataContext context,
	IProgressBar progressBar
)

Parameters

sum
Type: SystemDecimal
Sum to pay.
orderId
Type: SystemNullableGuid
Order Id.
paymentTypeId
Type: SystemGuid
Payment type Id.
transactionId
Type: SystemGuid
Transaction Id.
cashier
Type: Resto.Front.Api.V4.Data.SecurityIUser
User handling payments and receipts.
printer
Type: Resto.Front.Api.V4IReceiptPrinter
IReceiptPrinter object to perform print actions. Should not be used after method returns.
viewManager
Type: Resto.Front.Api.V4.UIIViewManager
IViewManager object to show dialogs. Should not be used after method returns.
context
Type: Resto.Front.Api.V4IPaymentDataContext
IPaymentDataContext object 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.
See Also