GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Google::Checkout::General::MerchantCalculationCallback(3) User Contributed Perl Documentation Google::Checkout::General::MerchantCalculationCallback(3)

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.
new XML => ...
Constructor. Takes the XML data passed from Google Checkout.
type
Always return "Google::Checkout::XML::Constants::MERCHANT_CALCULATION_CALLBACK".
get_buyer_id
Returns the buyer ID.
get_buyer_language
Returns the buyer language.
get_order_number
Returns the Google order number.
should_tax
Returns 1 if you should tax. Otherwise, returns 0.
get_shipping_methods
Returns an array reference of shipping methods.
get_merchant_code_strings
Returns an array reference of merchant code strings.
get_merchant_code_strings_with_pin
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.
get_addresses
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.

Google::Checkout::Notification::NewOrder
2007-09-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.