473,396 Members | 2,076 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,396 software developers and data experts.

Tracking PayPal orders by order ID

258 100+
Hi every one
I'v been googling for more than 1 week but I don't seem to find any answer for my question. unfortunatly there are not many articles about using Paypal in a self made script.

I looked at the oscommerce source and found the code to use PayPal.

Here it is :
Expand|Select|Wrap|Line Numbers
  1. <form name="checkout_confirmation" action="https://secure.paypal.com/cgi-bin/webscr" method="post">
  2.  
  3. <input type="hidden" name="cmd" value="_xclick">
  4. <input type="hidden" name="business" value="myemail@provider.com">
  5. <input type="hidden" name="item_name" value="fresh OSCommerce Store">
  6. <input type="hidden" name="amount" value="221.96">
  7. <input type="hidden" name="shipping" value="5.00">
  8. <input type="hidden" name="currency_code" value="USD">
  9. <input type="hidden" name="return" value="http://netmotor.se/checkout_process.php">
  10. <input type="hidden" name="cancel_return" value="http://netmotor.se/checkout_payment.php">
  11. <input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order ">
  12.  
  13. </form>
  14.  
Everything works fine with this code but the problem is that I don't know how to track orders by order ID.
Lets say 5 customers order products at the same time and pay with PayPal.

SO, The question is how we can see which order is payed . I mean is there a way to send the order ID to PayPal . The seller needs to check if the payment is done correctly before he sends the product.


Any suggestion will be appreciated
Thanks
Oct 31 '09 #1
3 11734
Markus
6,050 Expert 4TB
Hi, bnashenas1984.

Can you clarify a few things for me?
  • Are you wanting to store the order ID on your server?
  • Where does the order ID come from (paypal, or your site)?
Oct 31 '09 #2
bnashenas1984
258 100+
Hello Markus

We have a shopping cart in our website which sores order details and ID in a database when ever the customer clicks on CHECK OUT button. and then they will be redirected to Paypal to pay.

Lets say several customers order products and pay with PayPal.

Order ID's look like this:

ORD001
ORD002
ORD003
ORD004


At the end of each day the owner of the store will check he's PayPal account to see which orders have been payed for.

My question is how we know which money transfer is for which order. I mean there must be some order ID or something to identify each transaction.

But as you can see in the code i sent in my previous post there is no ID sent to PayPal.


Thanks
Oct 31 '09 #3
Markus
6,050 Expert 4TB
I see the problem now. I've never worked with PayPal before, so my suggestions will be shots-in-the-dark.

Anyway, after looking at this page, I notice that you can also send along an 'item_number' variable to PayPal through the form. You might use this section to pass the order-id. I'm not sure how this is displayed on the PayPal side, though. You will have to test it.

Mark.
Oct 31 '09 #4

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

Similar topics

1
by: Sanju Joseph | last post by:
Dear friends, We are working on a website which will enable the users to place orders from restaurants. The payments are to be directed through Paypal.com. Can anyone provide us necessary...
1
by: DonLi | last post by:
OK. For DDL, please refer to the classical Northwind ORDERS table, problem/challenge, find the longest duration (start_date and end_date), during which, no orders were placed. FYI, column names...
7
by: Muzamil | last post by:
Hi I want a simple select query on a column-name (smalldatetime) with values dislayed in desc order with null values FIRST. i.e. Select orderdate from orders order by ( null values first...
3
by: John Buchmann | last post by:
I know this is kind of off topic, but i am thinking of integrating it in my asp.net site... My question is: If someone buys something from my site (using Paypal), and they are NOT a registered...
26
by: GreatAlterEgo | last post by:
Hi, This is my query which is embedded in a COBOL program. EXEC SQL SELECT DATE, AGE, DURATION, AMT INTO :LDATE, :L.AGE, :L.DURATION, :L.AMT FROM TAB1 WHERE CODE = :KEY.CODE AND...
29
by: pb648174 | last post by:
I have the following basic statements being executed: Create a temp table, #TempPaging Insert Into #TempPaging (Col1, Col2) Select Col1, Col2 From SomeOtherTable Order By Col2, Col1 Select...
14
by: ykhamitkar | last post by:
Hi there, I am working on paypal payment gateway using php. How can I set return url with some arguments Thanks, Yogesh
3
by: ykhamitkar | last post by:
Hi I tried the notify_url but it didnt work can you see if I am doing any error. or do i need to change any any setting in paypal site to activate notify_url Here is my html code for the form...
1
by: MehtabKhan | last post by:
Any one who tell me what’s wrong with this code. When I pass values to pay pal by using www.sandbox.paypal.com/cgi-bin/webscr all the code are working well. The orders are generating accurately....
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.