Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paypal - Submit order and listner

Status
Not open for further replies.

jasonhuibers

Programmer
Sep 12, 2005
290
CA
I am able to submit my order to PAYPAL account but need to add the listner to see if order was successfully paid. What is the SIMPLEST way to do this? Any quick samples out there?
 
Paypal must have some sort of a process where you can send an order id and have that returned in either a post or a get once the order has been processed.

Once you get the order id back, you can do with it what you please...




--------

GOOGLE is a great resource to find answers to questions like "how do i..."


--------
 
If you want to use Paypal on your site make sure you join Paypal developer network. It has developer tools and tutorials.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
I will use this code but need to know the URL for the sandbox site?


<%@ Language=VBScript %>

<%

' paypal account informations
my_paypal_email = "myemail@mydomain.com"

' my domain informations
return_page = " notify_page = " cancel_page = "
' my product informations
item_price = "50"
item_name = "My Product"
item_quantity = "1"
item_cod = "12345"
currency_type = "USD"

' call paypal page
url = " url = url & "?business=" & my_paypal_email
url = url & "&return=" & return_page
url = url & "&notify_url=" & notify_page
url = url & "&cancel_return=" & cancel_page
url = url & "&quantity=" & item_quantity
url = url & "&item_name=" & replace(item_name," ","%20")
url = url & "&item_number=" & item_cod
url = url & "&amount=" & item_price
url = url & "&no_shipping=1"
url = url & "&no_note=0"
url = url & "&currency_code=" & currency_type
response.redirect url
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top