|
NAMEGoogle::Checkout::Notification::ChargeAmount SYNOPSIS use Google::Checkout::Notification::ChargeAmount;
use Google::Checkout::General::Util qw/is_gco_error/;
my $xml = "/xml/charge_amount_notification.xml";
#--
#-- $xml can either be a file or a complete XML doc string
#--
my $charge_amount = Google::Checkout::Notification::ChargeAmount->new(xml => $xml);
die $charge_amount if is_gco_error $charge_amount;
print $charge_amount->get_latest_charge_amount,"\n",
$charge_amount->get_total_charge_amount,"\n";
DESCRIPTIONSub-class of "Google::Checkout::Notification::GCONotification". This module can be used to extract the latest and the total charged amount when the charge amount notification is received.
COPYRIGHTCopyright 2006 Google. All rights reserved. SEE ALSOGoogle::Checkout::Notification::GCONotification
|