iikoFront Api V7 Code Reference
iikoFront Api V7 Code Reference
Resto.Front.Api.Editors
IEditSession Interface
IEditSession Methods
AddExternalPaymentItem Method
AddExternalPaymentItem Method (Decimal, Boolean, IPaymentItemAdditionalData, OrganizationDetailsInfo, IPaymentType, IOrderStub)
AddExternalPaymentItem Method (Guid, Decimal, Boolean, IPaymentItemAdditionalData, OrganizationDetailsInfo, IPaymentType, IOrderStub)

# IEditSession AddExternalPaymentItem Method (Decimal, Boolean, IPaymentItemAdditionalData, OrganizationDetailsInfo, IPaymentType, IOrderStub)

Add new external payment item to order.

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

    INewPaymentItemStub AddExternalPaymentItem(
    	decimal paymentSum,
    	bool isProcessed,
    	IPaymentItemAdditionalData additionalData,
    	OrganizationDetailsInfo organizationDetailsInfo,
    	IPaymentType paymentType,
    	IOrderStub order
    )

#### Parameters

paymentSum
  Type: System
  Decimal
  Sum of payment item that will be added.
isProcessed
  Type: System
  Boolean
  Whether payment item was already processed by some external system.
additionalData
  Type: Resto.Front.Api.Data.Payments
  IPaymentItemAdditionalData
  Instance of a payment specific type carrying properties, which will be used to initialize a payment item, or null if payment type doesn't require additional data for payment item initialization.
organizationDetailsInfo
  Type: Resto.Front.Api.Data.Payments
  OrganizationDetailsInfo
  Organization details informations.
paymentType
  Type: Resto.Front.Api.Data.Payments
  IPaymentType
  Type of payment item that will be added. It should be allowed to create external payment items of this type.
order
  Type: Resto.Front.Api.Editors.Stubs
  IOrderStub
  Order to which payment item will be added.

#### Return Value

Type: INewPaymentItemStub
See Also

#### Reference

IEditSession Interface
AddExternalPaymentItem Overload
Resto.Front.Api.Editors Namespace