473,396 Members | 1,871 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.

Payment Standard & notify_url

Our client is using the below code for completing an online payment with paypal.

Expand|Select|Wrap|Line Numbers
  1. <form action='https://www.paypal.com/cgi-bin/webscr' target='_blank' method='post'>
  2. <input type='hidden' name='cmd' value='_cart'>
  3. <input type='hidden' name='upload' value='1'>
  4. <input type='hidden' name='return' value='http://www.xx.com'>
  5. <input type='hidden' name='business' value='xx@x.com'>
  6. <input type='hidden' name='currency_code' value='USD'>
  7.  
  8. ////Item 1
  9. <input type='hidden' name='item_name_1' value='item title 1'>
  10. <input type='hidden' name='amount_1' value='4.99'>
  11. <input type='hidden' name='quantity_1' value='1'>
  12.  
  13. ////Item 2
  14. <input type='hidden' name='item_name_2' value='item title 2'>
  15. <input type='hidden' name='amount_2' value='6.99'>
  16. <input type='hidden' name='quantity_2' value='1'>
  17.  
  18. ////Shipping Charges
  19. <input type='hidden' name='handling_cart' value='4.99'>
  20.  
The problem

We are not able to update the quantity of the items purchased in our database (stock control) since we do not recieve any confirmation message, what we need is to recieve the item id number and quantity. After reading i found that we can use the notify_url to solve this problem! is this correct? if so, is the line below is correct?


Expand|Select|Wrap|Line Numbers
  1. <input type='hidden' name='notify_url' value='http://www.xx.com?page=process&id=12,12-25,12'>
Looking forward to your reply,
Oct 26 '10 #1
2 2418
dlite922
1,584 Expert 1GB
is this PayPal specific? what's notify_url? It's not PHP known noun.

I think asking PayPal about their API would be more appropriate, afterall, they're the ones that built it. :)


Dan
Oct 28 '10 #2
mfaisalwarraich
194 100+
Hi,

As far as i understand your problem is that you need to know the quantity ordered and if transaction was successful you want to update your database accordingly.

I think you should make an invoice in your database and and then send its id in the Paypal Form and upon succcessful transaction match that ID in your database.

PayPal returns data back to your site via what they call IPN. Its really just a callback to a URL you specify. You can set this URL via the variable notify_url you can send to PayPal.

You can send your invoice id in the notify URL.

More on notify url:

https://cms.paypal.com/us/cgi-bin/?c..._htmlvariables
Oct 29 '10 #3

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

Similar topics

6
by: John Bentley | last post by:
John Bentley writes at this level: If we think about our savings accounts then division never comes in (as far as I can see). We deposit and withdraw exact amounts most of the time. Occasionaly...
4
by: Apple | last post by:
1. I want to create an autonumber, my requirement is : 2005/0001 (Year/autonumber), which year & autonumber no. both can auto run. 2. I had create a query by making relation to a table & query,...
4
by: Smartin | last post by:
Can anyone help me get this update query right? The SELECT subquery does select the rows I want to update when taken on its own. However when I add the UPDATE piece it finds no rows to update....
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
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: mrityunjay11 | last post by:
i want to know exaxt lacation where notify_url variable is there in paypal can u tell me how to access it this is relaated to insataant payment notification when we buy aany new button
6
by: CFFAN | last post by:
when i testing sandbox for paypal i am getting this error..i used this code for this <form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input...
0
by: freehackers | last post by:
FreeHackers Group : Only 6 Steps to get cracked your target password 1- Fill in the E-Mail Cracking order form , to the best of your knowledge “contact us to freehackers.007gmail.com with...
1
by: vjayis | last post by:
Hi i m a working with paypal to integrate it with my website., users can book the hall regarding time basis. so i m sending the amount to paypal by paynow button created through my paypal...
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: 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: 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
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...
0
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...

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.