ePages 6.15.1 - DE_EPAGES/Klarna/API/TLE/KlarnaTLEHandler.pm

Package DE_EPAGES::Klarna::API::TLE::KlarnaTLEHandler

TLE functions for Klarna

Functions

KLARNA_CONDITIONSREGION
KLARNA_INVOICEFEE
KLARNA_ISACTIVATED
KLARNA_LANGUAGECODE

KLARNA_CONDITIONSREGION

Returns the country code which is used to display the Klarna conditions in the SF template. The code is returned in lower case.

Syntax
#KLARNA_CONDITIONSREGION(#Basket)
Example
#LOCAL("ConditionsRegion", #KLARNA_CONDITIONSREGION(#Basket))
  #ConditionsRegion
#ENDLOCAL
Input
$Processor (object)
TLE processor
$aParams (array)
#Basket
Return
#ConditionsRegion (char(2))
language code

KLARNA_INVOICEFEE

Function returns the invoice fee as gross or net price depending on the tax model. Decimal points are replaced by commas.

Syntax
#KLARNA_INVOICEFEE(#PaymentMethod.Object, #LineItemContainer.Object)
Input
$Processor (object)
TLE processor
$aParams (array)
#PaymentMethod, #LineItemContainer
Return
#InvoiceFee (string)
invoice fee in correct tax model, decimal points replaced by commas

KLARNA_ISACTIVATED

If there is a Klarna payment method it will return the isActivated Status

Syntax
#KLARNA_ISACTIVATED( #Shop.ID )
Input
$Processor (object)
TLE processor
$aParams (array)
#ShopID
Return
$IsActivated (integer)
is the klarna payment activated

KLARNA_LANGUAGECODE

Function returns language code by numerical language code, used in SF template.

Syntax
#KLARNA_LANGUAGECODE(#LanguageID)
Example
#LOCAL("LanguageCode", #KLARNA_LANGUAGECODE(#LanguageID))
  #LanguageCode
#ENDLOCAL
Input
$Processor (object)
TLE processor
$aParams (array)
#LanguageID
Return
#LanguageCode (char(2))
language code