ePages 6.11.0 - DE_EPAGES/AuthorizeNet/API/Object/PaymentMethodAuthorizeNet.pm

Package DE_EPAGES::AuthorizeNet::API::Object::PaymentMethodAuthorizeNet

object interface for PaymentMethodAuthorizeNet.

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

Functions

canAddToBasket
featureName
usableAtStorefront

canAddToBasket

Tests if a payment method can be added to the basket with the given currency. Overrides function DE_EPAGES::Order::API::Object::ContainerPaymentMethod::canAddToBasket The payment method can be added to the container only if the currency is USD.

Syntax
if ($PaymentMethod->canAddToBasket($hVars)) {...
Input
$hVars (ref.hash)
  • CurrencyID - alpha currency code (ISO 4217) - char(3)
  • TaxModel - gross or net price - int
Return
$canAddToBasket (boolean)
true if payment method can be used for the given currency

featureName

Returns the feature name 'AuthorizeNet'.

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

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