ePages 7.28.0 - DE_EPAGES/PayPalExpress/API/Object/PaymentMethodPayPalExpress.pm

Package DE_EPAGES::PayPalExpress::API::Object::PaymentMethodPayPalExpress

object interface for Payment.

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

Functions

featureName
getAlternativeCheckoutButtonInfo
usableAtStorefront

featureName

Returns the feature name 'PayPalExpress'.

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

getAlternativeCheckoutButtonInfo

return hash with information about the oneclick button for this paymentmethod. returns undef if preconditions for displaying the button are not met.

Syntax
getAlternativeCheckoutButtonInfo( $Basket );
Input
$Basket (object)
basket object
Return
(refhash)
info hash

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 = $PaymentMethodPayPalExpress->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