GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Google::Checkout::Command::RefundOrder(3) User Contributed Perl Documentation Google::Checkout::Command::RefundOrder(3)

Google::Checkout::Command::RefundOrder

  use Google::Checkout::General::GCO;
  use Google::Checkout::Command::RefundOrder;
  use Google::Checkout::General::Util qw/is_gco_error/;

  my $gco = Google::Checkout::General::GCO->new;

  my $refund_order = Google::Checkout::Command::RefundOrder->new(
                     order_number => 156310171628413,
                     amount       => 5,
                     comment      => "Refund to user",
                     reason       => "User wants to refund");
  my $response = $gco->command($refund_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 refund an order.
new ORDER_NUMBER => ..., AMOUNT => ..., COMMENT => ..., REASON => ...
Constructor. Takes a Google order number, amount to refund, comment and reason for the refund. Please note that a refund might not be possible depends on what states the order is in.
get_amount
Returns the refund amount.
set_amount AMOUNT
Sets the refund amount.
get_comment
Returns the comment.
set_comment COMMENT
Sets the comment.
get_reason
Returns the reason for the refund.
set_reason REASON
Sets the reason for the refund.
to_xml
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.

Copyright 2006 Google. All rights reserved.

Google::Checkout::Command::GCOCommand
2007-09-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.