Google::Checkout::Notification::RefundAmount
use Google::Checkout::General::GCO; use Google::Checkout::Notification::RefundAmount; use Google::Checkout::General::Util qw/is_gco_error/; my $xml = "/xml/refund_amount_notification.xml"; #-- #-- $xml can either be a file or a complete XML doc string #-- my $refund = Google::Checkout::Notification::RefundAmount->new(xml => $xml); die $refund if is_gco_error $refund; print $refund->get_latest_refund_amount, "\n", $refund->get_total_refund_amount, "\n";
Sub-class of Google::Checkout::Notification::GCONotification. This module can be used to extract various refund information when the refund amount notification is received.
Google::Checkout::Notification::GCONotification
Constructor. Takes either a XML file or XML doc as data string. If the XML is invalid (syntax error for example), Google::Checkout::General::Error is returned.
Google::Checkout::General::Error
Always return Google::Checkout::XML::Constants::REFUND_AMOUNT_NOTIFICATION.
Google::Checkout::XML::Constants::REFUND_AMOUNT_NOTIFICATION
Returns the latest refund amount.
Returns the total refund amount.
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.