ePages 6.11.0 - DE_EPAGES/PaymentTypes/API/Object/PaymentMethodDCC.pm

Package DE_EPAGES::PaymentTypes::API::Object::PaymentMethodDCC

Object interface for payment via direct credit card.

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

Functions

featureName
insert
usableAtStorefront

featureName

Returns the feature name 'DirectCreditCard'.

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

insert

Inserts a new PaymentMethodDCC object.

Syntax
$PaymentMethod = DE_EPAGES::PaymentTypes::API::Object::PaymentMethodDCC->insert($hInfo);
Example
my $Class = LoadClassByAlias('PaymentMethodDCC');
my $PaymentMethod = $Class->insertObject($hInfo);
Input
$Package (string)
class package
$hInfo (ref.hash)
attributes of new object
Return
$PaymentMethod (object)
new object

usableAtStorefront

Tests if a payment method with the given currency is visible in the storefront. Uses function DE_EPAGES::Payment::API::Object::PaymentMethod::price to evaluate if payment methode has a price (price can be 0).

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