|
|||
|
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, CVV2Type, related values and sample HTML are documented here. This Perl source requires Perl modules/libraries that are widely available. It is assumed here that the programmer understands the importance of these modules/libraries, and knows how to install them.
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $remote_url =
my $request = new HTTP::Request( 'POST', $remote_url );
$request->content_type( 'application/x-www-form-urlencoded' );
$stg = "ePNAccount=05971&CardNo=05971&ExpMonth=10&ExpYear=01
my $response = $ua->request($request);
if( $approval eq 'Y' )
print "</body></html>"; 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 and CVV2 responses, are output as follows:
With HTML:
Without HTML:
"YAUTH/TKT 019829","Address and Zip Code Do Not Match","CVV2 Not a Match" The response is essentially three 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. The third string is the processors response to the CVV2 information supplied.
|
|||
|
|
|
Copyright © 2000 - 2009 eProcessing Network, LLC. All Rights Reserved. |
|
|
|