Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/General/FlatRateShipping.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/General/FlatRateShipping.pm


NAME

Google::Checkout::General::FlatRateShipping


SYNOPSIS


  use Google::Checkout::General::GCO;

  use Google::Checkout::General::MerchantCheckoutFlow;

  use Google::Checkout::General::FlatRateShipping;

  use Google::Checkout::General::ShoppingCart;

  use Google::Checkout::General::Util qw/is_gco_error/;

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

  my $flat_rate_shipping = Google::Checkout::General::FlatRateShipping->new(

                           shipping_name => "Flat rate",

                           price         => 9.99);

  my $checkout_flow = Google::Checkout::General::MerchantCheckoutFlow->new(

                      shipping_method       => [$flat_rate_shipping],

                      edit_cart_url         => "http://...";,

                      continue_shopping_url => "http://...";,

                      buyer_phone           => "1-111-111-1111",

                      tax_table             => [$table1, $table2],

                      merchant_calculation  => $merchant_calculation);

  my $cart = Google::Checkout::General::ShoppingCart->new(

             expiration    => "+1 month",

             private       => "Private data",

             checkout_flow => $checkout_flow);

  $cart->add_item($item1);

  $cart->add_item($item2);

  my $response = $gco->checkout($cart);

  die $response if is_gco_error($response);

  #--

  #-- redirect URL

  #--

  print $response,"\n";


DESCRIPTION

Sub-class of Google::Checkout::General::Shipping. Create flat rate shipping method which can be used to add to merchant checkout flow.

new SHIPPING_NAME => ..., PRICE => ...
Constructor. Takes a shipping name and a price.


COPYRIGHT

Copyright 2006 Google. All rights reserved.


SEE ALSO

Google::Checkout::General::Shipping

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy