Google::Checkout::General::MerchantCalculationCallback
use Google::Checkout::General::MerchantCalculationCallback; my $callback = Google::Checkout::General::MerchantCalculationCallback->new( xml => "XML data from Gcogle Checkout"); print $callback->get_buyer_id(), $callback->get_buyer_language(),"\n";
Sub-class of Google::Checkout::Notification::NewOrder. This module can be used to handle merchant calculation callbacks. When a merchant sets up and receives a merchant calculation callback, XML data is passed from Google Checkout. The XML data contains information about the new order as well as buyer detail, this module can be used to extract any information from the XML file.
Google::Checkout::Notification::NewOrder
Constructor. Takes the XML data passed from Google Checkout.
Always return Google::Checkout::XML::Constants::MERCHANT_CALCULATION_CALLBACK.
Google::Checkout::XML::Constants::MERCHANT_CALCULATION_CALLBACK
Returns the buyer ID.
Returns the buyer language.
Returns the Google order number.
Returns 1 if you should tax. Otherwise, returns 0.
Returns an array reference of shipping methods.
Returns an array reference of merchant code strings.
Same as `get_merchant_code_strings' except this supports the new gift certificate format where customers can enter a PIN as well. It returns the result in an array reference where each element is a hash reference with `code' being the code string and `pin' being the PIN # the customer entered during checkout.
Returns an array reference of addresses. Each element of the element in the array is a hash reference with keys: 'id' (ID), 'country_code' (Country code), 'city' (City)), 'postal_code' (Postal code), 'region' (Region)
Copyright 2006 Google. All rights reserved.
To install Google::Checkout::XML::Writer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Checkout::XML::Writer
CPAN shell
perl -MCPAN -e shell install Google::Checkout::XML::Writer
For more information on module installation, please visit the detailed CPAN module installation guide.