Your website has a built-in Credit Card Gateway. You can send transactions to your gateway through ASP.
There are a number of ways to code this, and remember the full variable list in the support section is available, but for example...
dim BaseUrl
Dim Merchant
' ---------------------------------- Change yoursite.com to what your domain is
ApprovalBaseUrl="http://www.yoursite.com/ASPGateway/default.asp" '
DeclinedBaseUrl="http://www.yoursite.com/ASPGateway/default.asp"
Merchant="" '
dim result
dim CreditCard
dim expdate
creditcard=request("CreditCard")
expdate=request("ExpDate")
result=Request("result") ' Passed by the InfoDial Servers
if instr(1,approvalbaseurl,"yoursite.com",1) <> 0 then
response.write("default.asp must be edited before you test it.")
Response.End
end if
if creditcard<>"" then
Response.Redirect("/cgi-bin/processcc.exe?approvalURL="+ApprovalbaseURl+"?APPROVED=YES&declinedURL="+Declinedbaseurl+"?DECLINED=YES&TP_Merchant="+merchant+"&TP_CC="+CreditCard+"&TP_EXP="+ExpDate)
end if
if result<>"" then
response.write("Your transaction was:"+result)
end if
Note: This is a round-about way of doing it. A more integrated scenario would be to call the ISAPI directly.
' Include ISAPIconnect.inc
' ShopCart object declared and set by the include
result=ShopCart.ProcessTransaction(TP_CC=CreditCard&TP_EXP=ExpDate&...)
response.write("Your transaction was:"+result)
The above code would execute and process the credit card and return "YAPPROVED" or "NDECLINED"
|