CheckoutService
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
public __construct($frontendPaymentMethodRepository, $checkout, $basketRepository, $sessionStorage, $customerService, $parcelServicePresetRepo, $currencyExchangeRepo, $basketService, $sessionStorageService, $webstoreConfigurationService)
CheckoutService constructor.
Type |
Name |
Description |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
public getCheckout($retry = true):array
Get the relevant data for the checkout
Type |
Name |
Description |
|
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
Type |
Name |
Description |
|
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
Type |
Name |
Description |
|
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
Type |
Name |
Description |
|
public getShippingProfileId():int
Get the ID of the current shipping profile
public setShippingProfileId($shippingProfileId)
Set the ID of the current shipping profile
Type |
Name |
Description |
|
public getDeliveryAddressId():int
Get the ID of the current delivery address
public setDeliveryAddressId($deliveryAddressId)
Set the ID of the current delivery address
Type |
Name |
Description |
|
public getBillingAddressId():int
Get the ID of the current invoice address
public setBillingAddressId($billingAddressId)
Set the ID of the current invoice address
Type |
Name |
Description |
|
public setDefaultShippingCountryId()
public getMaxDeliveryDays()
public setReadOnlyCheckout($readonly)
Type |
Name |
Description |
|
public getReadOnlyCheckout()
public fromMemoryCache()
public resetMemoryCache($key = null)
Type |
Name |
Description |
|