ePages 6.17.43 - DE_EPAGES/AmazonPayments/API/TLE/WidgetHandler.pm

Package DE_EPAGES::AmazonPayments::API::TLE::WidgetHandler

Provides TLE functions for retrieval of Amazon widgets

Functions

ActiveAmazonRegion
AmazonButtonUrl
AmazonWidgetUrl

ActiveAmazonRegion

Returns the Amazon region code, if any, to use in the Storefront.

Syntax
#ActiveAmazonRegion(#PaymentMethod.Object)
Input
#PaymentMethod (object)
AmazonPayments payment method
Return
$Region (string)
Region (DE, UK or US) to show in the Storefront or undef if none

AmazonButtonUrl

Returns an Url to load the AmazonPayments button from

Syntax
#AmazonButtonUrl(#PaymentMethod, #Color, #Size)
Example
<img src='#AmazonButtonUrl(#PaymentMethod.Object, "orange", "medium")' />
Input
#PaymentMethod (object)
AmazonPayments payment method
#Color (string)
Button color (optional). orange (default) or tan
#Size (string)
Button size (optional). medium, large (default) or x-large
Return
$Url (string)
Url to load the button from

AmazonWidgetUrl

Returns an Url to load the AmazonPayments widget from

Syntax
#AmazonWidgetUrl(#PaymentMethod)
Example
<script src="#AmazonWidgetUrl(#PaymentMethod.Object)" />
Input
#PaymentMethod (object)
AmazonPayments payment method
Return
$Url (string)
Url to load the widget from