473,785 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tracking PayPal orders by order ID

258 Contributor
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 11768
Markus
6,050 Recognized Expert Expert
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 Contributor
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 Recognized Expert Expert
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
2109
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 information on the IPN(Instant Payment Notification) tracking? We are using our own shopping cart. When we place the order from our site the ordered items and the price needs to be processed in the PayPal site. There is a Confirm Order ASP Page from...
1
1469
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 by the order of colid per syscolumns: OrderID CustomerID EmployeeID OrderDate RequiredDate
7
3571
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 and then orderdate in desc order)
3
1163
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 PayPal user, can they buy my product immediately, or do they first have to sign up, wait a few days, etc. before actually ordering? I realize that they MUST sign-up with PayPal, but i'm
26
17213
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 SET = :KEY.SET AND DATE <= :KEY.DATE
29
27607
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 * from #TempPaging I can't provide a reproduceable scenario right now without making this
14
14451
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
20261
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 ================================================ <input type="Hidden" name="cmd" value="_xclick"> <input type="Hidden" name="business" value="username@hotmail.com"> <!-- Allow customer to enter desired quantity --> <input type="Hidden" ...
1
2415
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. The code after returning from paypal is as follows. <!--#include file="../includes/connection1.asp"--> <!--#include file="Cart_Include.asp"--> <% ' read post from PayPal system and add 'cmd' str ="cmd=_notify-validate&"& Request.QueryString '...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10151
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.