|
|
|||
|
|||
|
To process transactions from a Web server using ASP, installation of Microsoft's MSXML 3.0 is required. It contains a server-side specific version of the XMLHTTP component for use in Web or Application servers. If you need to install this free component, you can download it here. If you don't have it installed, you may get the error: Invalid ProgID when you execute Server.CreateObject("Microsoft.XMLHTTP"). Please note the following:
The required format of the variable names to pass to the eProcessingNetwork Transparent Database Engine Template is as follows:
ePNAccount, CardNo, ExpMonth, ExpYear, Total, Address, Zip It is assumed here that the programmer will populate these variables from values obtained from customers visiting a merchants' web site.
<%
Response.Buffer = True
'Create & initialize the XMLHTTP object
sRemoteURL = "https://www.eProcessingNetwork.Com/cgi-bin/tdbe/transact.pl"
'Open the connection to the remote server
'Send the request to the eProcessingNetwork Transparent Database Engine
'store the response
Response.Write "<html><body>"
'parse the response string and handle appropriately
if sApproval = "Y" then
iPosition = instr(sResponse, ",")
Response.Write "</body></html>"
Set xml = Nothing
By default, the eProcessingNetwork Transparent Database Engine Template outputs its' response in HTML format, i.e. wrapped in <html> and <body> tags, which can often aid in testing. Sending the additional variable HTML set to No causes the template to output the response without the HTML tags.
After the transaction has been processed, the banks' response to the transaction, as well as the Address Verification System response, are output as follows:
With HTML:
Without HTML:
"YAUTH/TKT 019829","Address and Zip Code Do Not Match" The response is essentially two quoted, comma-delimited strings. The first string always starts with a Y (Yes, approved), an N (No, declined) or a U (No, unable), and is followed by up to 16 characters describing the response. The second string is the Address Verification Systems' response to the street address and Zip code supplied.
|
|||
|
|
|
Copyright © 2000 - 2008 eProcessing Network, LLC. All Rights Reserved. |
|
|
|