iikoFront Api V8 Code Reference
iikoFront Api V8 Code Reference
Resto.Front.Api
IPaymentProcessor Interface
IPaymentProcessor Methods
CanPaySilently Method
CollectData Method
EmergencyCancelPayment Method
EmergencyCancelPaymentSilently Method
OnPaymentAdded Method
OnPreliminaryPaymentEditing Method
Pay Method
PaySilently Method
ReturnPayment Method
ReturnPaymentWithoutOrder Method

# IPaymentProcessor CanPaySilently Method

Whether to perform payment operation silently.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    bool CanPaySilently(
    	decimal sum,
    	Guid? orderId,
    	Guid paymentTypeId,
    	IPaymentDataContext context
    )

#### Parameters

sum
  Type: System
  Decimal
  Sum to return.
orderId
  Type: System
  Nullable
  Guid
  Order Id.
paymentTypeId
  Type: System
  Guid
  Payment type Id.
context
  Type: Resto.Front.Api
  IPaymentDataContext
  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

Exception | Condition
--- | ---
PaymentActionCancelledException | Exception to notify that payment actions was cancelled with no message shown.
PaymentActionFailedException | Exception to notify that payment actions was not successful.

See Also

#### Reference

IPaymentProcessor Interface
Resto.Front.Api Namespace