By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,836 Members | 2,097 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,836 IT Pros & Developers. It's quick & easy.

Paypal question

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.