ePages 6.17.9 - DE_EPAGES/AmazonPayments/API/Payment.pm

Package DE_EPAGES::AmazonPayments::API::Payment

Payment functions for AmazonPayments.

@EXPORT_OK
FetchAmazonAddress
StoreAmazonAddress
SendDeclinedMail

Functions

FetchAmazonAddress
SendDeclinedMail
StoreAmazonAddress

FetchAmazonAddress

Retrieve the selected address for a basket from Amazon

Syntax
$hAddressData = FetchAmazonAddress( $LineItemPayment );
Input
$LineItemPayment (object)
LineItemPayment
Return
$hAddressData (ref.hash)
Customer address, see DE_EPAGES::Address

SendDeclinedMail

Send a mail to the merchant if payment was declined by Amazon

Syntax
SendDeclinedMail($Order);
Input
$Order (string)
The order where the payment was declined

StoreAmazonAddress

Generate user and basket addresses from address fields retrieved from Amazon

Syntax
$Stored = StoreAmazonAddress( $Basket, $hAddressData );
Input
$Basket (object)
basket object
$hAddressData (ref.hash)
Customer address, see DE_EPAGES::Address
Return
$Stored (boolean)
true if the address data was stored; false if it was not stored
because it doesn't differ from the currently set address