472,333 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,333 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 2330
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...
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...
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...
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...
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...
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"...
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...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.