ePages 7.26.0 - DE_EPAGES/PaymentTypes/API/Object/PaymentMethodDirectDebit.pm

Package DE_EPAGES::PaymentTypes::API::Object::PaymentMethodDirectDebit

Object interface for payment via direct debiting.

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

Functions

insert
usableAtStorefront

insert

Inserts a new PaymentMethodDirectDebit object.

Syntax
$PaymentMethod = DE_EPAGES::PaymentTypes::API::Object::PaymentMethodDirectDebit->insert($hInfo);
Example
my $Class = LoadClassByAlias('PaymentMethodDirectDebit');
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.

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