![]() |
![]()
| ![]() |
![]()
NAMEGoogle::Checkout::General::MerchantCheckoutFlow SYNOPSISuse Google::Checkout::General::GCO; use Google::Checkout::General::ShoppingCart; use Google::Checkout::General::MerchantCheckoutFlow; use Google::Checkout::General::Util qw/is_gco_error/; my $checkout_flow = Google::Checkout::General::MerchantCheckoutFlow->new( shipping_method => [$method], edit_cart_url => "http://edit/cart/url", continue_shopping_url => "http://continue/shopping/url", buyer_phone => "true", tax_table => [$table1, $table2], merchant_calculation => $merchant_calculation, analytics_data => "SW5zZXJ0IDxhbmFseXRpY3MtZGF0YT4gdmFsdWUgaGVyZS4=", parameterized_urls => [$purl1, $purl2]); 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 = Google::Checkout::General::GCO->new->checkout($cart); die $response if is_gco_error($response); #-- #-- redirect URL #-- print $response,"\n"; DESCRIPTIONThis module is responsible for writing the <merchant-checkout-flow-support> XML.
COPYRIGHTCopyright 2006 Google. All rights reserved. SEE ALSOGoogle::Checkout::General::Shipping Google::Checkout::General::TaxTable Google::Checkout::General::MerchantCalculations
|