Print Page | Close Window

integratrating with eprocessingnetwork

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14788
Printed Date: 29 March 2026 at 5:15pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: integratrating with eprocessingnetwork
Posted By: payal
Subject: integratrating with eprocessingnetwork
Date Posted: 21 April 2005 at 11:46pm
hi,
 
I m integrating my website with the eProcessingNetwork Transparent Database Engine payment gateway for the transactions.
I have this code which is running fine and giving the desired result on some other server which is supporting asp.net. But the problem is when i try to run the same code on my site which is hosted by mydiscountasp.net, then it is giving me problem and end result is coming html wrapped format which is wrong. The code which i m running is below. Please help me out in integrating my website with the eprocessing payment gateway.
 
Code ::::
   Response.Buffer = True
                &nbs p;        Dim sRemoteURL, sResponse, sApproval As String
                &nbs p;        dim abc as string
                &nbs p;        Dim iPosition, iAvsLength As Integer
                &nbs p;        Try
                &nbs p;            Dim xmlhttp = CreateObject("Microsoft.XMLHTTP")
                &nbs p;        
                &nbs p;            sRemoteURL = " https://www.eProcessingNetwork.Com/cgi-bin/tdbe/transact.pl - https://www.eProcessingNetwork.Com/cgi-bin/tdbe/transact.pl "
                &nbs p;            xmlhttp.open("POST", sRemoteURL, False)
                &nbs p;        
                &nbs p;        
                &nbs p;           sResponse = xmlhttp.responseText
                &nbs p;           response.write(sResponse)
                &nbs p;                        &nbs p;                        &nbs p;          
                &nbs p;          Dim stre() As String = Regex.Split(xmlhttp.responseText, ",")
                &nbs p;             abc=stre(0)
                &nbs p;             response.write(abc)
                &nbs p;             sApproval = mid(abc,instr(abc,"""")+1,1)
                &nbs p;                        &nbs p;        
                &nbs p;           If sApproval = "Y" Then
        Session("Approval")="Y"
       
                &nbs p;               
                &nbs p;            ElseIf sApproval = "U" Then
                &nbs p;            Session("Approval")="U"
                &nbs p;            Session("DisplayMessage") = "The processor was unable to handle your " & _
                &nbs p;                   "transaction, having returned the following response:" & sResponse & "
                &nbs p;            Else
                &nbs p;            Session("Approval")="N"
                &nbs p;             Session("DisplayMessage")= "Your transaction has been declined with the " & _
                &nbs p;                   "following response: &  stre(0)  & "
                &nbs p;            End If
                &nbs p;            xmlhttp = Nothing
                &nbs p;            Response.Redirect("PaymentInfo.aspx")
                &nbs p;        Catch
                &nbs p;            Response.Write(Err.Description)
                &nbs p;



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net