Google::Checkout::General::Util is a Perl module from Google.
SYNOPSIS
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
is_gco_error OBJECT
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.
is_merchant_item OBJECT
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::MerchantItem. Returns false otherwise. This function is used internally.
is_shipping_method OBJECT
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::Shipping. Returns false otherwise. This function is used internally.
is_tax_table OBJECT
Returns true if OBJECT is an object (or sub-class) of Google::Checkout::General::TaxTable. Returns false otherwise. This function is used internally.
compute_hmac_sha1 DATA, B64
Compute HMAC SHA1 for DATA. If B64 is true, also encode it in Base64 before returning.
compute_base64 DATA
Compute Base64 for DATA.
date_time_string DATE_TIME_STRING
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_safe XML_DATA
Make XML_DATE safe to be used in a XML document. '&' is turned into '&', '>' is turned into '>' and '
Product's homepage