ePages 7.19.0 - DE_EPAGES/Spreedly/API/Object/PaymentMethodSpreedlyTest.pm

Package DE_EPAGES::Spreedly::API::Object::PaymentMethodSpreedlyTest

object interface for Payment.

Base
DE_EPAGES::Spreedly::API::Object::PaymentMethodSpreedly

Functions

canAddToBasket
featureName

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 Valid currencies are: EUR, GBP, 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 feature name.

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