On Oct 2, 1:07 am, bruce barker <nos...@nospam.comwrote:
the client needs to do the post, you just render a form following their
specs, and set the target.
-- bruce (sqlwork.com)
MikeB wrote:
I am posting to pay pal using pay pal standard and so for, all that I have
found is it takes form variables. I am not sure if I can place them in the
url or not.
"Michael Nemtsev" <nemt...@msn.comwrote in message
news:3d*************************@msnews.microsoft. com...
Hello MikeB,
how the 3rd party contol will get these values?
u can send your variables via session, via URL params.
---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
MHello All, I need to post / redirect to a 3rd party URL with the form
Mvariables dynamically created. Can anyone give me any pointers?
MMTIA
M>- Hide quoted text -
- Show quoted text -
Here's an example
string
stringPost="cm*************************@sample.com &item_name=Item
+Name&item_number=Item
+Number&amount=100.00&no_shipping=2&no_note=1&curr ency_code=USD&bn=IC_Sample"
HttpWebRequest httpWebRequest =
(HttpWebRequest)WebRequest.Create("https://www.paypal.com/cgi-bin/
webscr");
httpWebRequest.Method = "POST";
httpWebRequest.ContentLength = stringPost.Length;
httpWebRequest.ContentType = "application/x-www-form-urlencoded";
StreamWriter streamWriter = null;
streamWriter = new StreamWriter(httpWebRequest.GetRequestStream());
streamWriter.Write(stringPost);
streamWriter.Close();
HttpWebResponse httpWebResponse =
(HttpWebResponse)httpWebRequest.GetResponse();
using (StreamReader streamReader = new
StreamReader(httpWebResponse.GetResponseStream()))
{
stringResult = streamReader.ReadToEnd();
streamReader.Close();
}
You can also check an examples in .NET SDK
https://www.paypal.com/IntegrationCe...-resource.html
or some great articles, e.g.
http://www.west-wind.com/presentatio...ntegration.asp