slhemanthkumar / google-checkout-php-sample-code

Automatically exported from code.google.com/p/google-checkout-php-sample-code
0 stars 0 forks source link

Integers don't work in different parts for dollars #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
// Somewhere in the middle:
$Gshipping = new GoogleFlatRateShipping('Basic Shipping', 5);
$Gshipping->AddShippingRestrictions($Gfilter);
$Gcart->AddShipping($Gshipping);

Creates the xml without warning containing shipping of "5"
Clicking the button does _NOT_ include shipping line.

// Somewhere in the middle:
$Gshipping = new GoogleFlatRateShipping('Basic Shipping', '5.00');
$Gshipping->AddShippingRestrictions($Gfilter);
$Gcart->AddShipping($Gshipping);

Creates the xml without warning containing shipping of "5.00"
Clicking the button does include shipping line.

What is the expected output? What do you see instead?
Expected either GC to allow integer dollars, or the library to add decimal
places as needed.

What version of the product are you using? On what operating system?
1.2.5c.zip  Linux, PHP 5.2

Original issue reported on code.google.com by mrrehb...@gmail.com on 3 Jul 2009 at 8:27

GoogleCodeExporter commented 9 years ago
works for me?  Do you have the url of a button which exhibits this issue?

Original comment by peng.y...@gmail.com on 13 Sep 2010 at 10:35

GoogleCodeExporter commented 9 years ago
Looks like it has been resolved some time in the last 14 months.

Original comment by mrrehb...@gmail.com on 14 Sep 2010 at 4:58