ePages 7.3.0 - DE_EPAGES/PayPalPlus/API/Object/PaymentMethodPayPalPlus.pm

Package DE_EPAGES::PayPalPlus::API::Object::PaymentMethodPayPalPlus

Object interface for the PayPalPlus PaymentMethod.

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

Functions

areMandatoryFieldsSet
canAddToBasket
featureName
isMerchantAddressSet
usableAtStorefront

areMandatoryFieldsSet

Determines if all necessary address fields are set as mandatory.

Syntax
$AreMandatoryFieldsSet = $PaymentMethod->areMandatoryFieldsSet();
Return
(boolean)
True if all necessary fields are set as mandatory,
otherwise False is returned.

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

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

featureName

Returns the feature name 'PayPalPlus'.

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

isMerchantAddressSet

Determines if all necessary fields of the shop address contain a valid value.

Syntax
$IsMerchantAddressSet = $PaymentMethod->isMerchantAddressSet();
Return
(boolean)
True if the address information is set,
otherwise False is returned.

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
(boolean)
true if payment method is usable in the storefront