ePages 6.17.52 - DE_EPAGES/Klarna/API/Pclass.pm

Package DE_EPAGES::Klarna::API::Pclass

Klarna Pclass handling functions

Base
-
@EXPORT_OK
GetCountryPclasses
GetBasketPclasses

Functions

GetBasketPclasses
GetCountryPclasses

GetBasketPclasses

Get valid Pclasses for a basket

Syntax
$aPclasses = GetBasketPclasses($PaymentMethod, $Basket);
Input
$PaymentMethod (object)
the payment method
$Basket (object)
the basket object
Return
$PClasses (ref.array)
the pclasses for this basket

GetCountryPclasses

Get the Pclasses for a country

Syntax
$aPclasses = GetCountryPclasses($PaymentMethod, 'DE');
Input
$PaymentMethod (object)
the payment method
$CountryID (string)
CountryID (Code2)
Return
$PClasses (ref.array)
the pclasses for this country