Google::Checkout::General::Util
use Google::Checkout::General::Util qw/is_gco_error compute_hmac_sha1 compute_base64 date_time_string make_xml_safe is_merchant_item is_shipping_method is_tax_table format_tax_rate get_valid_carrier is_valid_buyer_info is_gift_certificate_object is_digital_content/;
Library contains a group of useful utility functions
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::Error. Returns false otherwise. Many functions reteurns Google::Checkout::General::Error to indicate error conditions so it's important to use this function to check for them.
Google::Checkout::General::Error
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::MerchantItem. Returns false otherwise. This function is used internally.
Google::Checkout::General::MerchantItem
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::Shipping. Returns false otherwise. This function is used internally.
Google::Checkout::General::Shipping
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::TaxTable. Returns false otherwise. This function is used internally.
Google::Checkout::General::TaxTable
Compute HMAC SHA1 for DATA. If B64 is true, also encode it in Base64 before returning.
Compute Base64 for DATA.
Given a valid date/time string, return it in ISO 8601 UTC format. If string is not a valid date/time string, Google::Checkout::General::Error is returned.
Make XML_DATE safe to be used in a XML document. '&' is turned into '&', '>' is turned into '>' and '<' is turned into '<'.
Make sure tax rate is in the right format. If RATE is less than 1, it's already in the right form so it's returned without any change. If RATE is equal to or greater than 1, it's assumed to be in percent format (for example, 25 means 25%) in which case it's turned into RATE / 100 (25 / 100 = 0.25).
Returns a valid carrier if CARRIER is valid. Returns Google::Checkout::General::Error otherwise. This function is used internally.
This function is used internally.
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.