David Shao Lin Zhuo > Google-Checkout > Google::Checkout::Command::AddMerchantOrderNumber

Download:
Google-Checkout-1.1.1.tar.gz

Dependencies

Annotate this POD (1)

CPAN RT

New  2
Open  0
View Bugs
Report a bug
Source  

NAME ^

Google::Checkout::Command::AddMerchantOrderNumber

SYNOPSIS ^

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

  my $add_merchant_order = Google::Checkout::Command::AddMerchantOrderNumber->new(
                           order_number          => 156310171628413,
                           merchant_order_number => 12345);
  my $response = $gco->command($add_merchant_order, $run_diagnose);
  die $response if is_gco_error($response);
  print $response,"\n\n";

DESCRIPTION ^

A sub-class of Google::Checkout::Command::GCOCommand. This module is used to add custom merchant order number.

new ORDER_NUMBER => ..., MERCHANT_ORDER_NUMBER=> ...

Constructor. Takes a Google order number and a custom merchant order number.

get_merchant_order_number

Returns the merchant order number.

set_merchant_order_number MERCHANT_ORDER_NUMBER

Sets the merchant order number.

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 GCO object internally.

COPYRIGHT ^

Copyright 2006 Google. All rights reserved.

SEE ALSO ^

Google::Checkout::General::GCO Google::Checkout::Command::DeliverOrder