473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

google checkout get custom variable at continue url

194 100+
Hello everybody,

I am working with google checkout and currently working at sandbox environment. I have used Paypal and i thought google checkout should work like the same. but i wonder that google checkout is not posting back the HTML form field on return URL and im not able to find any proper solution for this problem yet. Here is my code.
Expand|Select|Wrap|Line Numbers
  1. <form method="POST"
  2.   action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/SOMEID">
  3.   <input type="hidden" name="item_name_1" value="Add to My Page"/>
  4.   <input type="hidden" name="item_description_1" value="Add Pgae"/>
  5.   <input type="hidden" name="item_quantity_1" value="1"/>
  6.   <input type="hidden" name="item_price_1" value="35"/>
  7.   <input type="hidden" name="ship_method_currency_1" value="GBP"/>
  8.   <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.mydomain.com/gcheckout_success"/>
  9. <input type="hidden" name="shopping-cart.merchant-private-data" value="MyOrder#123">
  10.   <input type="hidden" name="_charset_"/>
  11.   <input type="image" name="Google Checkout" alt="Asian Wedding - Checkout"
  12. src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=SOMEID&w=180&h=46&style=white&variant=text&loc=en_US"
  13. height="46" width="180"/>
  14. </form>
  15.  
here im using a custom field shopping-cart.merchant-private-data to get the data but i dont know how to collect that data on continue URL.

I just need to pass some ID in a custom field so that on return URL I can get it back and then change my database on the basis of this ID. There is one thing which is important that Upon return google checkout is destroying sessions also and there is no value stored in sessions. This made a big problem for me. So please tell me how i can get that custom ID back from google checkout.

Thanx.
Aug 15 '10 #1
2 2776
TheServant
1,168 Expert 1GB
So the form is not posting?

Make a PHP script which echo's a value from the $_POST array and set the form action to that page. That way you can see if it's the form or the checkout api you're using.

I have never set up Google checkout, but I am guessing there is no error or message when you submit? Also, have a look at line 8: it looks like that is where you are sent if it is successful.
Aug 16 '10 #2
mfaisalwarraich
194 100+
I have tried to echo the $_POST array with var_dump() but its showing nothing into it.
Aug 16 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: jaYPee | last post by:
after searching of some article that will answer my question and find nothing I decided to post it here. my question is on how can I retain the value of a variable after the customer paid the...
1
by: Richard Steele | last post by:
Does any one have a framework I can use that implements a custom UI error handler for my asp.net 2 application I have implemented a handler for all biz and datalayer exceptions which write to my...
4
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some...
0
by: rbunn83815 | last post by:
Hello Everyone! Before we start I'm a javascipt newbie as well as trying to get javascipt to work with the C# code behind page in ASP.NET. C# alone I can do fairly well with however. I'll...
0
missshaikh
by: missshaikh | last post by:
Hi All, Need Help. i m using Google CheckOut in my Site. I have 3 Products when i use deferent ship_method_name_# like (FedEx, 'UPS Ground, UPS Air ) then it will work fine. But when i...
1
by: jecha | last post by:
I'm implementing a shopping cart but am having a problem in checking out a person who has added item in his/her shopping busket.The code for the checkout.php script is given below <?...
2
by: Pavel A. | last post by:
There are many predefined variables in a VC++ project properties like $(DevEnvDir), $(TargetName) etc. I'd like to add my custom variable to the project or solution (to share among several...
6
omerbutt
by: omerbutt | last post by:
hi I nee d a little guidance regarding google checkout i searched it on google and it took me too a page where it asked me to login through google account and after logging in it was asking for my...
0
by: vagueante | last post by:
Hi, I have to connect to a webservice, and the data i have is: WSDL XML sample file (which is what i have to send to the webservice and with credentials, user and password tags). XSD file My...
4
by: Bassem | last post by:
Hi, 1. I have add a Google Checkout "Buy Now" button on a HTML page, works fine. 2. I'm trying to access a MySql database as a customer click the Buy Now button. 3. I've put the a PHP code in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.