www.uburst.com www.uburst.com

"Authorize.net (AUTH_ONLY)"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Authorize.net (AUTH_ONLY)"
Posted by Sommay on Apr-21-00 at 06:03 PM (EST)
I would to know to add x_type AUTH_ONLY values so that Authorize.net can only Authorize only not Auto Capture.
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Authorize.net (AUTH_ONLY), Bill Weiner, Apr-21-00, (1)
RE: Authorize.net (AUTH_ONLY), Bill Weiner, Apr-21-00, (2)
Thanks, sommay, Apr-25-00, (3)
I would like to set the AUTH_ONLY p..., David Pike, Mar-06-01, (4)
RE: I would like to set the AUTH_ON..., Bill Weiner, Mar-07-01, (5)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Authorize.net (AUTH_ONLY)"
Posted by Bill Weiner on Apr-21-00 at 06:54 PM (EST)
The ushop_authnet_30.pl script currently does not pass the "x_Type" parameter to Authorize.Net so it defaults to "AUTH_CAPTURE". If you want to add the "x_Type" parameter so that you can set the value to "AUTH_ONLY", then follow these steps:

1) Open the ushop_authnet_30.pl script with any text editor such as Word Pad.

2) Do a search on "sub output_check_page" to find the start of the "output_check_page" subroutine. (line 603)

3) About 72 lines into the "output_check_page" subroutine, you will see where the parameters are passed to Authorize.Net as "HIDDEN" parameters.

4) Add the following line with the value "AUTH_ONLY" inserted:

print "";

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: Authorize.net (AUTH_ONLY)"
Posted by Bill Weiner on Apr-21-00 at 06:58 PM (EST)
Darn, this forum doesn't let me enter greater-than or less-than signs (even when I try escaping them). The line should look like this:

print "ZZZINPUT TYPE=\"HIDDEN\" NAME=\"x_Type\" VALUE=\"AUTH_ONLY\"ZZZ";

Except replace the ZZZ with greater-than/less-than signs...just like the other lines in that subroutine.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Thanks"
Posted by sommay on Apr-25-00 at 11:46 AM (EST)
Thanks bill - I got it to work. If I can set the Invoice Number to four to five digits and seguential i'll be a happy camper- sommay
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "I would like to set the AUTH_ONLY param also."
Posted by David Pike on Mar-06-01 at 07:39 PM (EST)
but uShop 3.0 does not have this sub any more. please help? thanks.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
5 . "RE: I would like to set the AUTH_ONLY param also."
Posted by Bill Weiner on Mar-07-01 at 06:47 AM (EST)
Below are some instructions on how to add the "AUTH_ONLY" parameter to uShop 3.x:

STEP 1: Make a backup of your current "ushop-lib.pl" script... just in case.

STEP 2: Open your "ushop-lib.pl" file with any text editor such as WordPad.

STEP 3: Do a search on the following line to get to the start of the subroutine that outputs the Authorize.Net parameters:

sub get_review_page_buttons

STEP 4: About 14 lines into that subroutine, you will see the following line:

$ret_html .= "< INPUT TYPE=\"hidden\" NAME=\"payment_method\" VALUE=\"authorize_net_payment\"> ";

STEP 5: Immediately after that line, add the following line:

$ret_html .= "< INPUT TYPE=\"hidden\" NAME=\"x_Type\" VALUE=\"AUTH_ONLY\"> ";

STEP 6: Save the file (as TEXT if your editor asks)... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.