Package DE_EPAGES::GoogleCheckout::API::Object::PaymentMethodGoogleCheckout
object interface for Payment.
Base |
DE_EPAGES::Order::API::Object::ContainerPaymentMethod |
Functions
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 if the AccountCurrencyID attribute is not set or matches the currency of the container.
Syntax |
if ($PaymentMethod->canAddToBasket($hVars)) {... |
Input |
|
Return |
|
featureName
Returns the feature name 'GoogleCheckout'.
Syntax |
$FeatureName = $PaymentMethodGoogleCheckout->featureName; |
Return |
|
insert
Throws error NoSecondInstanceAllowed if shop has a google checkout method.
Syntax |
$PaymentMethod = $Package->insert($hInfo); |
Example |
my $Class = LoadClassByAlias('PaymentMethodGoogleCheckout'); my $PaymentMethod = $Class->insertObject($hInfo); |
usableAtStorefront
Tests if a payment method with the given currency is visible in the storefront. Overrides function DE_EPAGES::Payment::API::Object::PaymentMethod::usableAtStorefront to evaluate if payment methode has a price (price can be 0).
Syntax |
$Usable = $PaymentMethod->usableAtStorefront($hVars); |
Input |
|
Return |
|