ePages 7.19.0 - DE_EPAGES/Billsafe/API/Object/PaymentMethodBillsafe.pm

Package DE_EPAGES::Billsafe::API::Object::PaymentMethodBillsafe

object interface for Payment.

Base
DE_EPAGES::Order::API::Object::ContainerPaymentMethod

Functions

canAddToBasket
canBillSafeAddToBasket
featureName
getCountryFromLineItemContainer
isAvailableForCurrency
isAvailableInCountry
new
usableAtStorefront

canAddToBasket

check the Payment method could be added to the basket

Syntax
canAddToBasket( $hVars );
Input
$hVars (ref_hash)
vars of container and basket
Return
$CanAddToBasket (boolean)
true if can add to basket

canBillSafeAddToBasket

Encapsulate the BillSafe specific condition of the canAddToBasket check

Syntax
canBillSafeAddToBasket( $hVars );
Input
$hVars (ref_hash)
vars of container and basket
Return
$CanAddToBasket (boolean)
true if can add to basket

featureName

Returns undef as no feature is connected to this PaymentMethod.

Syntax
$FeatureName = $PaymentMethod->featureName;
Return
$FeatureName (String)
feature name (undef means no feature count)

getCountryFromLineItemContainer

gets the Country hash reference related to the current billing Address

Syntax
getCountryFromLineItemContainer( $LineItemContainer );
Input
$LineItemContainer (object)
LineItemContainer from basket
Return
$hCountry (refhash)
hash reference of Country

isAvailableForCurrency

checks if the incomming $CurrencyID is in the List AvailableCurrencies

Syntax
isAvailableForCurrency( $CurrencyID );
Input
$Country (String)
currency ID
Return
$ReturnVariable (boolean)
true if currency is on the list

isAvailableInCountry

checks if the incomming Country is in the List AvailableInCountrys

Syntax
isAvailableInCountry( $Country );
Input
$Country (ref_hash)
epages Country element
Return
$ReturnVariable (boolean)
true if the Coountry is on the list

new

creates an basic object, which is not saved at database as object.

Syntax
$Object = DE_EPAGES::Core::API::BaseObject->new('ObjectID' => $ObjectID );
Input
%Attributes (hash)
attribute value hash
Return
$Object (object)
existing object

usableAtStorefront

Tests if a payment method is visible in the storefront. Overrides function DE_EPAGES::Payment::API::Object::PaymentMethod::usableAtStorefront to evaluate if payment method is configured

Syntax
$Usable = $PaymentMethod->usableAtStorefront($hVars);
Return
$Usable (boolean)
true if payment method is usable in the storefront