Last post May 24, 2007 10:47 AM by dream-catcher
May 19, 2007 09:12 AM|dream-catcher|LINK
I have a problem getting an httpwebrequest to send information to a payment processor (hsbc). it seems to send the information, but doesnt then follow through to the address at the processor. frankly it's driving me mad and I must just be missing something
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ConfigurationManager.AppSettings["HSBC_URL"]);
request.Method = WebRequestMethods.Http.Post;
request.ContentType = "application/x-www-form-urlencoded";
request.AllowAutoRedirect = true;
//request.MaximumAutomaticRedirections = 3;
using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
any thoughts would be greatly appreciated!
May 20, 2007 11:56 PM|Rex Lin - MSFT|LINK
You can check out this great article:
ASP.NET and PayPal's Instant Payment Notification (IPN)
I hope the above information will be helpful. If you have any issues or concerns, please let me know. It's my pleasure to be of assistance
May 24, 2007 10:16 AM|dream-catcher|LINK
thanks for that, much appreciated.
however now I get a response in the form of the html form on the server that I was sending to, but what I really need is to have the user directed to that page on the remote server.....not have the text posted back to me...
May 24, 2007 10:37 AM|klabran|LINK
I just did this with Authorize.Net.... See the below article for how to do that. The code you are using will send a stream to your payment processor. It will not send a user. This technique is best used when you gather all of the relevant information
and then ask the payment processor to validate and execute the CC transaction with a response coming back to you.
This article creates in memory a form that submits itself to the 3rd party vendor for the customer to complete the process (IE - enter CC info and complete payment).
Hopefully, this is what you were looking for.
May 24, 2007 10:47 AM|dream-catcher|LINK
this situation sadly is that we only collect cardholder address details, and then send that to the outside server along with merchant info etc. the client should then follow that stream to the outside address....