Package DE_EPAGES::AmazonPayments::API::Payment
Payment functions for AmazonPayments.
@EXPORT_OK |
Functions
ConvertAmazonAddress
Converts the given address info from Amazon into a structure suitable to insert into an epages Address object.
Syntax |
$hShippingAddressData = ConvertAmazonAddress( $LineItemPayment, $AmazonAddr ); |
Input |
|
Return |
|
SendDeclinedMail
Send a mail to the merchant if payment was declined by Amazon
Syntax |
SendDeclinedMail($Order); |
Input |
|
StoreAmazonBillingAddress
Generate user and basket addresses from address fields retrieved from Amazon This method should be called after authorization, when amazon reveals the customer's billing address information.
Syntax |
$Stored = StoreAmazonBillingAddress( $Basket, $hAddressData ); |
Input |
|
Return |
|
StoreAmazonShippingAddress
Generate user and basket addresses from address fields retrieved from Amazon This method assumes that shipping address is equal to the billing address, as it is the only information provided by amazon during checkout.
Syntax |
$Stored = StoreAmazonShippingAddress( $Basket, $hAddressData ); |
Input |
|
Return |
|