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";
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.
Constructor. Takes the XML data passed from Google Checkout.
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.