carviaso / google-checkout-dotnet-sample-code

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

ChargeAndShipOrderRequest sending empty item-shipping-information-list #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the following (VB) code, you will get an error response from google 
saying "You can not specify both a tracking-data-list and an 
item-shipping-information-list."  Without specifying either one in code, both 
nodes are still generated and both are empty.  Seems like it should be an easy 
fix but I don't have the code.

Dim charge As New ChargeAndShipOrderRequest(GoogleOrderNumber)
charge.Amount = 100
charge.Send()

Original issue reported on code.google.com by ke...@lightburndesigns.com on 24 Nov 2010 at 5:10

GoogleCodeExporter commented 9 years ago
This error response occurs for all dotNet ChargeAndShipOrderRequest calls, 
e.g.with C#

ChargeAndShipOrderRequest reqC = new ChargeAndShipOrderRequest(MERCHANT_ID, 
MERCHANT_KEY, "Production", ordAuthNumber, "USD", totalCaptured);            
reqC.Send();

Original comment by ericpbe...@ericpbeyer.com on 29 Jan 2011 at 9:04

GoogleCodeExporter commented 9 years ago
for the call above

Integration Issue Detail 
Related order: ***************** 
Time of occurrence: Jan 31, 2011 3:44:53 PM EST 
Error: You can not specify both a tracking-data-list and an 
item-shipping-information-list. 

XML we received:
<?xml version="1.0" encoding="utf-8"?>
<charge-and-ship-order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
google-order-number="****************" 
xmlns="http://checkout.google.com/schema/2">
  <amount currency="USD">**.**</amount>
  <tracking-data-list />
  <item-shipping-information-list />
  <send-email>true</send-email>
</charge-and-ship-order>

XML we sent:
<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://checkout.google.com/schema/2" 
serial-number="20af7a68-af3e-4d28-a8af-feeeedd53e96">
  <error-message>You can not specify both a tracking-data-list and an item-shipping-information-list.</error-message>
</error>

Original comment by ericpbe...@ericpbeyer.com on 31 Jan 2011 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by joseph.f...@gmail.com on 20 Apr 2011 at 6:07

GoogleCodeExporter commented 9 years ago
Fixed in checkin 237. Change was made to only set the node if there is a value.

Original comment by joseph.f...@gmail.com on 20 Apr 2011 at 6:33