vb.net - PayPal POST payment not working on mobile browsers -
I have a web application that is written in VBnet. I have applied the payment through Paypal when I pay through PC, there is no problem, but when I pay through mobile I have some problems. I do not read the PayPal parameter on my return page can. I used httpwebrequest to read information from PayPal, but the variable request.form is empty, so the response is "INVALID".
Is there anyone who can help me ??? Please ...
This is my code:
dim objHttp hTTP web Riwuipt Ojjat = Vebarkwastkkret ( "as https://www.sandbox.paypal.com/cgi-bin/webscr") objHttp.method = "POST" objHttp.ContentType = "application / x-www- Byte () = Request as Form-URL Exodied "Ultimate. BinaryRead (HttpContext.Current.Request.ContentLength) string = encoding. ASCII.GetString (Ultimate) as dim strRequest string = as strRequest strRequest ipnPost = "& amp; cmd = _Notify- valid" ObjHttp.ContentLength = strRequest. Send request to length 'paypal and get feedback dim stream oujhp. Getrequeststream (), SystemTacks Encoding. ASCIII) stream ot. Write (struavest) stream oyat. Close () Dim stream in as new StreamReader (objHttp.GetResponse (). GetResponseStream ()) string = streamIn.ReadToEnd () as dim myHttpWebResponse as StreamInkClose () http WebResponse = CType (objHttp. GetResponse (), HttpWebResponse) dim strIdTransazione = request form ( "txn_id") dim strDscTransazione = Request.Form ( "Bhugtan_stets") Actiteepitats code. IHHTP Web Response Status Code () If My HTTP Webbank Status code & lt; & Gt; HttpStatusCode.OK then end if
Comments
Post a Comment