CheckoutService

Namespace

IO\Services

Properties
Type Name Description

FrontendPaymentMethodRepositoryContract

$frontendPaymentMethodRepository

Checkout

$checkout

BasketRepositoryContract

$basketRepository

FrontendSessionStorageFactoryContract

$sessionStorage

CustomerService

$customerService

ParcelServicePresetRepositoryContract

$parcelServicePresetRepo

CurrencyExchangeRepositoryContract

$currencyExchangeRepo

BasketService

$basketService

SessionStorageService

$sessionStorageService

WebstoreConfigurationService

$webstoreConfigurationService

``

$cache

string

$pluginNamespace

Methods
public __construct($frontendPaymentMethodRepository, $checkout, $basketRepository, $sessionStorage, $customerService, $parcelServicePresetRepo, $currencyExchangeRepo, $basketService, $sessionStorageService, $webstoreConfigurationService)

CheckoutService constructor.

Parameters

Type

Name

Description

FrontendPaymentMethodRepositoryContract

$frontendPaymentMethodRepository

Checkout

$checkout

BasketRepositoryContract

$basketRepository

FrontendSessionStorageFactoryContract

$sessionStorage

CustomerService

$customerService

ParcelServicePresetRepositoryContract

$parcelServicePresetRepo

CurrencyExchangeRepositoryContract

$currencyExchangeRepo

BasketService

$basketService

SessionStorageService

$sessionStorageService

WebstoreConfigurationService

$webstoreConfigurationService

public getCheckout($retry = true):array

Get the relevant data for the checkout

Parameters

Type

Name

Description

bool

$retry

Try loading checkout again on failure (e.g. problems during calculating totals)

public getCurrency():string

Get the current currency from the session

public setCurrency($currency)

Set the current currency from the session

Parameters

Type

Name

Description

string

$currency

public getCurrencyList()
public getCurrencyData()
public getCurrencyPattern()
public getMethodOfPaymentId():int

Get the ID of the current payment method

public setMethodOfPaymentId($methodOfPaymentID)

Set the ID of the current payment method

Parameters

Type

Name

Description

int

$methodOfPaymentID

public preparePayment():array

Prepare the payment

public getMethodOfPaymentList():array

List all available payment methods

public getMethodOfPaymentExpressCheckoutList():array

List all payment methods available for express checkout

public getCheckoutPaymentDataList():array

Get a list of the payment method data

public getShippingProfileList():array

Get the shipping profile list

public getShippingCountryId():int

Get the ID of the current shipping country

public setShippingCountryId($shippingCountryId)

Set the ID of thevcurrent shipping country

Parameters

Type

Name

Description

int

$shippingCountryId

public getShippingProfileId():int

Get the ID of the current shipping profile

public setShippingProfileId($shippingProfileId)

Set the ID of the current shipping profile

Parameters

Type

Name

Description

int

$shippingProfileId

public getDeliveryAddressId():int

Get the ID of the current delivery address

public setDeliveryAddressId($deliveryAddressId)

Set the ID of the current delivery address

Parameters

Type

Name

Description

int

$deliveryAddressId

public getBillingAddressId():int

Get the ID of the current invoice address

public setBillingAddressId($billingAddressId)

Set the ID of the current invoice address

Parameters

Type

Name

Description

int

$billingAddressId

public setDefaultShippingCountryId()
public getMaxDeliveryDays()
public setReadOnlyCheckout($readonly)
Parameters

Type

Name

Description

``

$readonly

public getReadOnlyCheckout()
public fromMemoryCache()
public resetMemoryCache($key = null)
Parameters

Type

Name

Description

``

$key