Click or drag to resize

IPaymentProcessorCanPaySilently Method

Whether to perform payment operation silently.

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

Parameters

sum  Decimal
Sum to return.
orderId  NullableGuid
Order Id.
paymentTypeId  Guid
Payment type Id.
context  IPaymentDataContext
IPaymentDataContext object to work with plugin saved data in Syrve storage.

Return Value

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