ePages 7.47.0 - DE_EPAGES/Paybox/API/Object/PaymentMethodPaybox.pm

Package DE_EPAGES::Paybox::API::Object::PaymentMethodPaybox

object interface for PaymentMethodPaybox.

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

Functions

className
dbPackage
featureName
new
usableAtStorefront

className

Returns the class name, used for DAL access.

Syntax
$ClassName = $PaymentMethodPaybox->className;
Return
$ClassName (String)
class name

dbPackage

Returns the database package, used for DAL access.

Syntax
$DbPackage = $PaymentMethodPaybox->dbPackage;
Return
$DbPackage (String)
database package name

featureName

Returns undef if no feature is connected to this PaymentMethod.

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

new

overloads DE_EPAGES::Core::API::BaseObject->new to decrypt attributes before store in cache

Syntax
$Object = $Package->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);
Input
$hVars (ref.hash)
  • CurrencyID - alpha currency code (ISO 4217) - char(3)
  • TaxModel - gross or net price - int
Return
$Usable (boolean)
true if payment method is usable in the storefront