I am trying to post information to paypal in order for customers to pay for merchandise on a site that I am developing. I am passing the information over so the paypal site can grab the info. I am using the HttpWebRequest and what is happening is that it is not redirecting to the paypal site. Here is the code that I am using.
Protected Sub lbAddress_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lbAddress.Click
Dim objRequest As HttpWebRequest
Dim strRequest As String
Dim arrRequest As Byte()
Dim objUTF8Encoding As UTF8Encoding
Dim strmRequest As Stream
objRequest = CType(WebRequest.Create("https://www.paypal.com/cgi-bin/webscr
objRequest.Method = "POST"
objRequest.ContentType = "application/x-www-form-ur
strRequest = "?" & Server.UrlEncode("cmd=_car
t &upload=1 &business=login@youremail.
objUTF8Encoding = New UTF8Encoding
arrRequest = objUTF8Encoding.GetBytes(s
objRequest.ContentLength = arrRequest.Length
strmRequest = objRequest.GetRequestStrea
st, 0, arrRequest.Length)
I have been trying to get this to work for a couple hours now and am totally stumped.