Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

authorize.net response page

Status
Not open for further replies.

ability1

Programmer
Dec 24, 2002
23
US
i've made the following lame attempt to create a response page for Authorize.net but it is giving me parsing errors.
here is my code to this point.

#!/usr/local/bin/perl -w



use strict;

# $Id: sim.pl,v 1.4 2002/11/21 23:31:53 adama Exp $



# You may want to store this more securely in a DB or Registry or a Encrypted File
# --------------------------------------------------------------------------------
;









print "content-type: text/html\n\n";



print "Response Code : $x_response_code\n";
print "Transaction ID: $trans_id\n";
print "Description: Payment For Dr\. ".$x_description." <BR />\n";
print "Total Amount : ".$x_amount." <BR /><BR />\n";
print "Full Name : $x_first_name <BR />\n";
print "Address : $x_address <BR />\n";
print "City : $x_city <BR />\n";
print "State : $x_state <BR />\n";
print "Zip : $x_zip <BR />\n";
print "Country : $x_country <BR />\n";
print "Email : $x_email <BR />\n";
print "Phone : $x_phone <BR />\n";
print "Account number : $x_cust_id <BR />\n";
print "Card Number : $x_card_num <BR />\n";
print "Experation : $x_exp_date <BR />\n";
print "Card CVC : $x_card_code <BR />\n";



# If you don't use a currency code variable, you can still use this call to InsertFP,
# it will use it if supplied but works without it. If you do supply it, InsertFP will
# also print out an html hidden field containing the x_currency_code you passed in.

# Insert other form elements similiar to legacy weblink integration


1;
 
Code:
#!/usr/local/bin/perl -w  



use strict;

# $Id: sim.pl,v 1.4 2002/11/21 23:31:53 adama Exp $



# You may want to store this more securely in a DB or Registry or a Encrypted File
# --------------------------------------------------------------------------------
print "content-type: text/html\n\n";
print "Response Code : ".$x_response_code."\n";
print "Transaction ID: ".$trans_id."\n";
print "Description: Payment For Dr\.  ".$x_description."  <BR />\n";
print "Total Amount : ".$x_amount." <BR /><BR />\n";
print "Full Name : ".$x_first_name." <BR />\n";
print "Address : ".$x_address." <BR />\n";
print "City : ".$x_city." <BR />\n";
print "State : ".$x_state." <BR />\n";
print "Zip : ".$x_zip." <BR />\n";
print "Country : ".$x_country." <BR />\n";
print "Email : ".$x_email." <BR />\n";
print "Phone : ".$x_phone." <BR />\n";
print "Account number : ".$x_cust_id." <BR />\n";
print "Card Number : ".$x_card_num." <BR />\n";
print "Experation : ".$x_exp_date." <BR />\n";
print "Card CVC : ".$x_card_code." <BR />\n";

# If you don't use a currency code variable, you can still use this call to InsertFP, 
#  it will use it if supplied but works without it.  If you do supply it, InsertFP will
#  also print out an html hidden field containing the x_currency_code you passed in.

# Insert other form elements similiar to legacy weblink integration

___________________________________
[morse]--... ...--[/morse], Eric.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top