wendyanas / google-checkout-php-sample-code

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

<merchant-code-strings> sent by Google Checkout don't provide enough information. #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm having problems sending back the appropriate XML response for
<merchant-code-strings>. 

What steps will reproduce the problem?
1. Input several invalid codes in both the coupon and gift certificate
fields in Google Checkout.

What is the expected output? What do you see instead?
I would expect a coupon or gift certificate flag sent with the
<merchant-code-strings> or for Google to determine the proper display
response based off of the Merchant Code. 

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

Please provide any additional information below.

If the user enters an invalid Coupon, I would like to send: 
<coupon-result>
 <valid>false</valid>
 <code>12345</code>
 <calculated-amount currency="USD">0.00</calculated-amount>
 <message>Invalid Coupon</message>
</coupon-result>

If they enter an invalid Gift Certificate, I would like to send:
<gift-certificate-result>
 <valid>false</valid>
 <code>12346</code>
 <calculated-amount currency="USD">0.00</calculated-amount>
 <message>Invalid Gift Certificate</message>
</gift-certificate-result>

If I don't send the appropriate <coupon-result> or
<gift-certificate-result> the user will see the wrong response in the
"Additional Options" box.

The problem is that the XML that Google sends me is:
<merchant-code-strings>
 <merchant-code-string code="12345"/>
 <merchant-code-string code="12346"/>
<merchant-code-strings>

If they are valid merchant codes, I can check with our internal system and
send the correct <coupon-result> or <gift-certificate-result>. However, if
they are invalid, there is no way to determine which one to send.

Original issue reported on code.google.com by kwie...@gmail.com on 10 Oct 2007 at 7:13

GoogleCodeExporter commented 8 years ago
HI

it seems is not a library issue, please fwd ur questions will full detail and 
some
test scenarios to the PHP Support thread
http://groups.google.com/group/google-checkout-api-php/topics

thx

ropu

Original comment by rovagn...@gmail.com on 12 Nov 2007 at 2:11