Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


external gateway

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,56096
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> external gateway
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 external gateway - 1/29/2008 2:16:11 PM   
  meenoi

 

Posts: 1
Score: 0
Joined: 1/29/2008
Status: offline
Hi Sir

If I use below:

Code: ( asp )
theMainURL =
"https://4tknox.au.com/cgi-bin/the­ merchant.au.com/ecom/external2.pl"­

theParams = "LOGIN=xxx/xxxx&COMMAND=purchase&A­ MOUNT=" & CreditAmount&
"&CCNUM=" & CreditCard & "&CCEXP=" & CreditExpiry & "&COMMENT=" & CreditComment

Dim xmlhttp

Set xmlhttp = Server.CreateObject("MSXML2.XMLHTT­P")
xmlhttp.Open "POST", theMainURL, false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded­ "
xmlhttp.send theParams

Response.write xmlhttp.responseText

The question is how can I get return values and insert in SQL, if gateway result is "failed", "declined" or "Approved"

Thank you.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> external gateway Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts