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

Paypal question

Hi all, I have an ASP.NET application which I use to call paypal.

I pass in the success URL as

http://www.somedomain.com/success.aspx

I go right through the paypal process and I finally get the "Return to
merchant" button on the PayPal screen.

If I look at the source code of the Paypal page the form action looks like
this
<form action="http://www.somedomain.com/success.aspx" action="GET">

And then there is a simple submit button which sends the browser back to the
page specified in the Form.

What I would like to be able to do is pass in a identifier which is returned
attached to the success URL

Something like http://www.somedomain.com/success.aspx?myuniqueid=100

Because Paypal uses a form to return the information using the GET method,
any querystring info is stripped off and therefor I cannot attach a unique
identifier.

Does anyone have any idea about how I can get around this??

Thanks in advance
Mark
Nov 19 '05 #1
4 2416
you could use a unique URL for each request and inplement a http handlet to
specifically look for urls that match the pattern.

for example insead of wanting to return to the page succes.aspx?id=100

you could return to the page success_100.apsx

and use a http handler to look for the pattern "success_"

cheers

martin.
"Mark" <ma**@Z-Zvolution.nZt> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl...
Hi all, I have an ASP.NET application which I use to call paypal.

I pass in the success URL as

http://www.somedomain.com/success.aspx

I go right through the paypal process and I finally get the "Return to
merchant" button on the PayPal screen.

If I look at the source code of the Paypal page the form action looks like
this
<form action="http://www.somedomain.com/success.aspx" action="GET">

And then there is a simple submit button which sends the browser back to
the
page specified in the Form.

What I would like to be able to do is pass in a identifier which is
returned
attached to the success URL

Something like http://www.somedomain.com/success.aspx?myuniqueid=100

Because Paypal uses a form to return the information using the GET method,
any querystring info is stripped off and therefor I cannot attach a unique
identifier.

Does anyone have any idea about how I can get around this??

Thanks in advance
Mark

Nov 19 '05 #2
Hi Martin, thanks, I was hoping I would not have to do the HTTP handler
implementation but it looks like this might be the way to go.

Regards
Mark

Replace the Z with the e to reply
----------------------------------------------------------------

"Martin" <ma*******************@martinz.co.nz> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
you could use a unique URL for each request and inplement a http handlet to specifically look for urls that match the pattern.

for example insead of wanting to return to the page succes.aspx?id=100

you could return to the page success_100.apsx

and use a http handler to look for the pattern "success_"

cheers

martin.
"Mark" <ma**@Z-Zvolution.nZt> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl...
Hi all, I have an ASP.NET application which I use to call paypal.

I pass in the success URL as

http://www.somedomain.com/success.aspx

I go right through the paypal process and I finally get the "Return to
merchant" button on the PayPal screen.

If I look at the source code of the Paypal page the form action looks like this
<form action="http://www.somedomain.com/success.aspx" action="GET">

And then there is a simple submit button which sends the browser back to
the
page specified in the Form.

What I would like to be able to do is pass in a identifier which is
returned
attached to the success URL

Something like http://www.somedomain.com/success.aspx?myuniqueid=100

Because Paypal uses a form to return the information using the GET method, any querystring info is stripped off and therefor I cannot attach a unique identifier.

Does anyone have any idea about how I can get around this??

Thanks in advance
Mark


Nov 19 '05 #3
Checkout the IPN (instant payment notification) feature offered by PayPal.

Here's an article someone published about integrating IPN with ASP.Net...
http://www.bluevisionsoftware.com/We...px?Name=PayPal

Basically, you configure your Paypal account to always use a specific page
within your site for payment notifications.

When Paypal has received a payment it makes a HTTP POST request to the given
URL and includes loads of FORM parameters in the request, so you pick up the
shopping cart ID, the buyer's name, address, order details, payment amount,
currency, etc. from the request, just as you would if they were in the
querystring.

There's a built-in safeguard in that the request includes a token that you
then use to request a confirmation form the PayPal site. This guards against
anyone faking an IPN request to your handler claiming to have paid you when
they really hoven't.

I know this is not a direct answer to your question, but hopefully it
addresses what you're trying to do.

Brian Lowe
---------@
"Mark" <ma**@Z-Zvolution.nZt> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl...
Hi all, I have an ASP.NET application which I use to call paypal.

I pass in the success URL as

http://www.somedomain.com/success.aspx

I go right through the paypal process and I finally get the "Return to
merchant" button on the PayPal screen.

Nov 19 '05 #4
I think you should be using this free paypal component:
http://www.componentone.com/paypal/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Mark" <ma**@Z-Zvolution.nZt> wrote in message
news:eS**************@TK2MSFTNGP15.phx.gbl...
Hi all, I have an ASP.NET application which I use to call paypal.

I pass in the success URL as

http://www.somedomain.com/success.aspx

I go right through the paypal process and I finally get the "Return to
merchant" button on the PayPal screen.

If I look at the source code of the Paypal page the form action looks like
this
<form action="http://www.somedomain.com/success.aspx" action="GET">

And then there is a simple submit button which sends the browser back to
the
page specified in the Form.

What I would like to be able to do is pass in a identifier which is
returned
attached to the success URL

Something like http://www.somedomain.com/success.aspx?myuniqueid=100

Because Paypal uses a form to return the information using the GET method,
any querystring info is stripped off and therefor I cannot attach a unique
identifier.

Does anyone have any idea about how I can get around this??

Thanks in advance
Mark

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: C:>/ | last post by:
A client wants the payment process with OSCommerce to use PayPal , however every time it asks for all the registration information twice. Does anyone know if theres a way to overcome this? Is there...
1
by: madison | last post by:
Hi, I am trying to start a website using paypals shopping cart function. If i have 10 items and they sell out, how do I make it so the item is then listed as sold out. The next person would not...
5
by: Vinod | last post by:
Hi I am having a payment website which needs to be integrated, i am having the following code which is not working fine. I am having the following script and my notifyurl is not working i...
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...
2
by: #2pencil | last post by:
After some google'n & looking through some PayPal pdfs I'm starting a post here. What I'm trying to find is the method of changing (upgrading or downgrading) members subscription services...
0
by: PayPal Security Measures! | last post by:
<P><A href="http://www.paypal.com/cgi-bin/webscr?cmd=_home" target=_blank><IMG src="https://www.paypal.com/en_US/i/logo/paypal_logo.gif" border=0></A</P> <TABLE cellSpacing=0 cellPadding=0...
0
by: Nicodemus | last post by:
Do You Belive? \ cheapbbc@sina.com wrote in news:aecf26b6-4c75-4d87-b09c-a7380875e0f3 @w34g2000prm.googlegroups.com:
3
by: bnashenas1984 | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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.