kmitgroup / google-checkout-php-sample-code

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

private-date rather than private-data #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Using google-checkout-php-sample-code-v1.0.0.zip the file cartdemo.php
builds an XML request which has an incorrect attribute name. 

What is the expected output? What do you see instead?

I've been trying to add private data to each item so that the call back
from Google can interact with our database. However the XML request is
incorrectly formatted.

<item>
        <item-name>Sony KDL-40S2030U</item-name>
        <item-description>color - blue
size - large
</item-description>
        <unit-price currency="USD">1299</unit-price>
        <quantity>1</quantity>

<merchant-private-date>a:3:{s:7:&quot;digital&quot;;s:1:&quot;0&quot;;s:11:&quot
;productCode&quot;;s:12:&quot;KDL-40S2030U&quot;;s:9:&quot;productId&quot;;s:2:&
quot;23&quot;;}</merchant-private-date>
        <tax-table-selector>rule_1</tax-table-selector>
</item>

I think this should be:

<item>
        <item-name>Sony KDL-40S2030U</item-name>
        <item-description>color - blue
size - large
</item-description>
        <unit-price currency="USD">1299</unit-price>
        <quantity>1</quantity>

<merchant-private-data>a:3:{s:7:&quot;digital&quot;;s:1:&quot;0&quot;;s:11:&quot
;productCode&quot;;s:12:&quot;KDL-40S2030U&quot;;s:9:&quot;productId&quot;;s:2:&
quot;23&quot;;}</merchant-private-date>
        <tax-table-selector>rule_1</tax-table-selector>
</item>

"merchant-private-data" rather than "merchant-private-date"

What version of the product are you using? On what operating system?

google-checkout-php-sample-code-v1.0.0.zip released 18th Dec.

I don't think this is platform related.

Please provide any additional information below.

None I can think of. 

Original issue reported on code.google.com by abrookba...@gmail.com on 14 Feb 2007 at 12:15

GoogleCodeExporter commented 9 years ago
I do appologise I didn't see the other issue report concerning this.

I'm off to spec-savers... see you. :)

Original comment by abrookba...@gmail.com on 14 Feb 2007 at 12:16

GoogleCodeExporter commented 9 years ago

Original comment by rovagn...@gmail.com on 13 Jun 2007 at 4:20