Jump to content

Google One Page Checkout Error


Recommended Posts

Hey I have been trying to figure out the google one page checkout and I keep getting this error. Can anyone help me out with this?

 

 

 

 

« Back to Integration Center

 

 

Integration Issue Detail

Time of occurrence: Oct 8, 2011 6:55:36 PM PDT Error: Error parsing XML; message from parser is: Invalid value for body of unit-price in checkout-shopping-cart/shopping-cart/items/item: This is not a number

More documentation for this error. Warnings: XML failed to validate against the schema at line: 15, column 15, with error: cvc-datatype-valid.1.2.1: '-!' is not a valid value for 'decimal'.

XML failed to validate against the schema at line: 15, column 15, with error: cvc-complex-type.2.2: Element 'unit-price' must have no element [children], and the value must be valid. XML we received:

 

<?xml version="1.0" encoding="UTF-8"?>

<checkout-shopping-cart xmlns="http://checkout.google.com/schema/2">'>http://checkout.google.com/schema/2">

<shopping-cart>

<items>

<item>

<item-name>Test</item-name>

<item-description><p>test</p></item-description>

<unit-price currency="USD">0.01</unit-price>

<quantity>1</quantity>

<item-weight unit="LB" value="0" />

</item>

<item>

<item-name>AdminTest</item-name>

<item-description>admin test</item-description>

<unit-price currency="USD">-!</unit-price>

<quantity>1</quantity>

</item>

</items>

<merchant-private-data>32|a8bc60f14ca246a9c4c06299b1d84911</merchant-private-data>

</shopping-cart>

<checkout-flow-support>

<merchant-checkout-flow-support>

<edit-cart-url>http://www.badassstickers.com/order.php</edit-cart-url>

<continue-shopping-url>http://www.badassstickers.com/order-confirmation.php</continue-shopping-url>

<shipping-methods>

<flat-rate-shipping name="US Priority">

<price currency="USD">0</price>

</flat-rate-shipping>

</shipping-methods>

<request-buyer-phone-number>false</request-buyer-phone-number>

</merchant-checkout-flow-support>

</checkout-flow-support>

</checkout-shopping-cart>

XML we sent:

 

<?xml version="1.0" encoding="UTF-8"?>

<error xmlns="http://checkout.google.com/schema/2" serial-number="36aed856-8157-4741-be46-7ca04eb483d5">

<warning-messages>

<string>XML failed to validate against the schema at line: 15, column 15, with error: cvc-datatype-valid.1.2.1: '-!' is not a valid value for 'decimal'.</string>

<string>XML failed to validate against the schema at line: 15, column 15, with error: cvc-complex-type.2.2: Element 'unit-price' must have no element [children], and the value must be valid.</string>

</warning-messages>

<error-message>Error parsing XML; message from parser is: Invalid value for body of unit-price in checkout-shopping-cart/shopping-cart/items/item: This is not a number</error-message>

</error>

Link to comment
Share on other sites

Hey I have been trying to figure out the google one page checkout and I keep getting this error. Can anyone help me out with this?

 

 

 

 

« Back to Integration Center

 

 

Integration Issue Detail

Time of occurrence: Oct 8, 2011 6:55:36 PM PDT Error: Error parsing XML; message from parser is: Invalid value for body of unit-price in checkout-shopping-cart/shopping-cart/items/item: This is not a number

More documentation for this error. Warnings: XML failed to validate against the schema at line: 15, column 15, with error: cvc-datatype-valid.1.2.1: '-!' is not a valid value for 'decimal'.

XML failed to validate against the schema at line: 15, column 15, with error: cvc-complex-type.2.2: Element 'unit-price' must have no element [children], and the value must be valid. XML we received:

 

<?xml version="1.0" encoding="UTF-8"?>

<checkout-shopping-cart xmlns="http://checkout.google.com/schema/2">'>http://checkout.google.com/schema/2">

<shopping-cart>

<items>

<item>

<item-name>Test</item-name>

<item-description><p>test</p></item-description>

<unit-price currency="USD">0.01</unit-price>

<quantity>1</quantity>

<item-weight unit="LB" value="0" />

</item>

<item>

<item-name>AdminTest</item-name>

<item-description>admin test</item-description>

<unit-price currency="USD">-!</unit-price>

<quantity>1</quantity>

</item>

</items>

<merchant-private-data>32|a8bc60f14ca246a9c4c06299b1d84911</merchant-private-data>

</shopping-cart>

<checkout-flow-support>

<merchant-checkout-flow-support>

<edit-cart-url>http://www.badassstickers.com/order.php</edit-cart-url>

<continue-shopping-url>http://www.badassstickers.com/order-confirmation.php</continue-shopping-url>

<shipping-methods>

<flat-rate-shipping name="US Priority">

<price currency="USD">0</price>

</flat-rate-shipping>

</shipping-methods>

<request-buyer-phone-number>false</request-buyer-phone-number>

</merchant-checkout-flow-support>

</checkout-flow-support>

</checkout-shopping-cart>

XML we sent:

 

<?xml version="1.0" encoding="UTF-8"?>

<error xmlns="http://checkout.google.com/schema/2" serial-number="36aed856-8157-4741-be46-7ca04eb483d5">

<warning-messages>

<string>XML failed to validate against the schema at line: 15, column 15, with error: cvc-datatype-valid.1.2.1: '-!' is not a valid value for 'decimal'.</string>

<string>XML failed to validate against the schema at line: 15, column 15, with error: cvc-complex-type.2.2: Element 'unit-price' must have no element [children], and the value must be valid.</string>

</warning-messages>

<error-message>Error parsing XML; message from parser is: Invalid value for body of unit-price in checkout-shopping-cart/shopping-cart/items/item: This is not a number</error-message>

</error>

 

Th

Hey I have been trying to figure out the google one page checkout and I keep getting this error. Can anyone help me out with this?

 

 

 

 

« Back to Integration Center

 

 

Integration Issue Detail

Time of occurrence: Oct 8, 2011 6:55:36 PM PDT Error: Error parsing XML; message from parser is: Invalid value for body of unit-price in checkout-shopping-cart/shopping-cart/items/item: This is not a number

More documentation for this error. Warnings: XML failed to validate against the schema at line: 15, column 15, with error: cvc-datatype-valid.1.2.1: '-!' is not a valid value for 'decimal'.

XML failed to validate against the schema at line: 15, column 15, with error: cvc-complex-type.2.2: Element 'unit-price' must have no element [children], and the value must be valid. XML we received:

 

<?xml version="1.0" encoding="UTF-8"?>

<checkout-shopping-cart xmlns="http://checkout.google.com/schema/2">'>http://checkout.google.com/schema/2">

<shopping-cart>

<items>

<item>

<item-name>Test</item-name>

<item-description><p>test</p></item-description>

<unit-price currency="USD">0.01</unit-price>

<quantity>1</quantity>

<item-weight unit="LB" value="0" />

</item>

<item>

<item-name>AdminTest</item-name>

<item-description>admin test</item-description>

<unit-price currency="USD">-!</unit-price>

<quantity>1</quantity>

</item>

</items>

<merchant-private-data>32|a8bc60f14ca246a9c4c06299b1d84911</merchant-private-data>

</shopping-cart>

<checkout-flow-support>

<merchant-checkout-flow-support>

<edit-cart-url>http://www.badassstickers.com/order.php</edit-cart-url>

<continue-shopping-url>http://www.badassstickers.com/order-confirmation.php</continue-shopping-url>

<shipping-methods>

<flat-rate-shipping name="US Priority">

<price currency="USD">0</price>

</flat-rate-shipping>

</shipping-methods>

<request-buyer-phone-number>false</request-buyer-phone-number>

</merchant-checkout-flow-support>

</checkout-flow-support>

</checkout-shopping-cart>

XML we sent:

 

<?xml version="1.0" encoding="UTF-8"?>

<error xmlns="http://checkout.google.com/schema/2" serial-number="36aed856-8157-4741-be46-7ca04eb483d5">

<warning-messages>

<string>XML failed to validate against the schema at line: 15, column 15, with error: cvc-datatype-valid.1.2.1: '-!' is not a valid value for 'decimal'.</string>

<string>XML failed to validate against the schema at line: 15, column 15, with error: cvc-complex-type.2.2: Element 'unit-price' must have no element [children], and the value must be valid.</string>

</warning-messages>

<error-message>Error parsing XML; message from parser is: Invalid value for body of unit-price in checkout-shopping-cart/shopping-cart/items/item: This is not a number</error-message>

</error>

  • This is very nice post thanks for sharing this great solutions and i am also facing the same problem and after trying this this i fixed it.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...