Click or drag to resize

IExternalPaymentProcessorCanPaySilently Method

Whether to perform payment operation silently.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
bool CanPaySilently(
	decimal sum,
	Guid? orderId,
	Guid paymentTypeId,
	IPaymentDataContext context
)

Parameters

sum
Type: SystemDecimal
Sum to return.
orderId
Type: SystemNullableGuid
Order Id.
paymentTypeId
Type: SystemGuid
Payment type Id.
context
Type: Resto.Front.ApiIPaymentDataContext
IPaymentDataContext object to work with plugin saved data in iiko storage.

Return Value

Type: Boolean
If the payment operation must be processed silently then return true. Otherwise return false.
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