Package DE_EPAGES::AmazonPayments::API::Object::PaymentMethodAmazonPayments
object interface for Payment.
Base |
DE_EPAGES::Order::API::Object::ContainerPaymentMethod |
Functions
- callbackUrl
- canAddToBasket
- client
- featureName
- getAlternativeCheckoutButtonInfo
- regionForSF
- regions
- usableAtStorefront
callbackUrl
Returns the callbackUrl for instant payment notifications. Only returns a value, if the shop/site has an ssl certificate. Having a vaild (!) SSL certificate is an IPN requirement.
Syntax |
my $Url = $PaymentMethod->callbackUrl; |
Return |
|
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 |
|
Return |
|
client
Returns an initialized AmazonRestClient
Syntax |
my $Client = $PaymentMethod->client($hArgs); |
Input |
|
Return |
|
featureName
Returns the feature name 'AmazonPayments'.
Syntax |
$FeatureName = $PaymentMethod->featureName; |
Return |
|
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 |
|
Return |
|
regionForSF
Returns the region id that should be used with a given locale and currency.
Syntax |
my $RegionID = $PaymentMethod->regionForSF($LocaleID, $CurrencyID) |
Input |
|
Return |
|
regions
Returns all regions that are supported by Amazon Payments. Use activeRegions to get the regions that are actually usable in the current database.
Syntax |
$hRegions = $PaymentMethod->regions; |
Return |
|
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 |
|
Return |
|