8 messaggi dal 07 agosto 2007
Buonasera a tutti,

dopo 9 anni di corretto funzionamento, senza aver toccato nulla nel codice, ricevo il seguente errore DA IPN di payPall

Connessione sottostante chiusa: Errore imprevisto durante un'operazione di invio..

IPN di payPAll è il sistema di messaggistica che ti invia in immediato il risultato della transazione dopo un pagamento su e-commerce, e quindi in base al buon fine tu esegui poi le operazioni rimanenti.


A seguire il codice che ha sempre funzionato:

Dim strLive As String = "https://ipnpb.paypal.com/cgi-bin/webscr" 'NUOVO URL da marzo 2020 (SPERIAMO)

Dim req As HttpWebRequest = CType(WebRequest.Create(strLive), HttpWebRequest)
'Set values for the request back
req.Method = "POST"
'req.KeepAlive=True
req.ContentType = "application/x-www-form-urlencoded"
Dim Param() As Byte = Request.BinaryRead(HttpContext.Current.Request.ContentLength)
Dim strRequest As String = Encoding.ASCII.GetString(Param)
strRequest = strRequest + "&cmd=_notify-validate"
req.ContentLength = strRequest.Length


'Send the request to PayPal and get the response
Dim streamOut As StreamWriter = New StreamWriter(req.GetRequestStream(), Encoding.ASCII)
QUI L'ERRORE, LA RIGA QUI SOPRA MI GENERA L'ERRORE.
potete aiutarmi? CI STO SBATTENDO DA UN PAIO DI GIORNI

streamOut.Write(strRequest)
streamOut.Close()
Dim streamIn As StreamReader = New StreamReader(req.GetResponse().GetResponseStream())
strResponse = streamIn.ReadToEnd()
streamIn.Close()

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.