external gateway

Author Message
meenoi

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 1/29/2008
  • Status: offline
external gateway Tuesday, January 29, 2008 3:16 PM (permalink)
0
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.
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • 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
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9