Click or drag to resize

IPaymentProcessor.PaySilently Method

Perform silent payment operation.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
void PaySilently(
	decimal sum,
	IOrder order,
	IPaymentItem paymentItem,
	Guid transactionId,
	IPointOfSale pointOfSale,
	IUser cashier,
	IReceiptPrinter printer,
	IPaymentDataContext context
)

Parameters

sum
Type: System.Decimal
Sum to pay.
order
Type: Resto.Front.Api.Data.Orders.IOrder
Order.
paymentItem
Type: Resto.Front.Api.Data.Payments.IPaymentItem
Payment item.
transactionId
Type: System.Guid
Transaction Id.
pointOfSale
Type: Resto.Front.Api.Data.Organization.IPointOfSale
Point of sale.
cashier
Type: Resto.Front.Api.Data.Security.IUser
User handling payments and receipts.
printer
Type: Resto.Front.Api.IReceiptPrinter
IReceiptPrinter object to perform print actions. Should not be used after method returns.
context
Type: Resto.Front.Api.IPaymentDataContext
IPaymentDataContext object 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.
See Also