Google::Checkout::Command::ChargeOrder
use Google::Checkout::General::GCO; use Google::Checkout::Command::ChargeOrder; use Google::Checkout::General::Util qw/is_gco_error/; my $gco = Google::Checkout::General::GCO->new; my $charge_order = Google::Checkout::Command::ChargeOrder->new( order_number => 156310171628413, amount => 12.34); my $response = $gco->command($charge_order); die $response if is_gco_error($response); print $response,"\n\n";
A sub-class of Google::Checkout::Command::GCOCommand. This module is used to charge an order.
Google::Checkout::Command::GCOCommand
Constructor. Takes a Google order number and the amount to charge.
Returns the amount to charge.
Sets the amount to charge.
Return the XML that will be sent to Google Checkout. Note that this function should not be used directly. Instead, it's called indirectly by the Google::Checkout::General::GCO object internally.
Google::Checkout::General::GCO
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.