uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Authorize.net (AUTH_ONLY)

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-18-17 05:22 AM EST
Original Message
Authorize.net (AUTH_ONLY)
Author Sommay on 04-21-2000 at 18:03 (EST)
I would to know to add x_type AUTH_ONLY values so that Authorize.net can only Authorize only not Auto Capture.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Authorize.net (AUTH_ONLY) Bill Weiner, 2000-04-21 18:54:54 (1)
            RE: Authorize.net (AUTH_ONLY) Bill Weiner, 2000-04-21 18:58:52 (2)
                 Thanks sommay, 2000-04-25 11:46:05 (3)
  I would like to set the AUTH_ONLY param also. David Pike, 2001-03-06 19:39:03 (4)
            RE: I would like to set the AUTH_ONLY param also. Bill Weiner, 2001-03-07 06:47:15 (5)

Messages In This Discussion
         1. RE: Authorize.net (AUTH_ONLY)
        Author Bill Weiner on 04-21-2000 at 18:54 (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 "";

TABLE OF CONTENTS
                 2. RE: Authorize.net (AUTH_ONLY)
                Author Bill Weiner on 04-21-2000 at 18:58 (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.
TABLE OF CONTENTS
                         3. Thanks
                        Author sommay on 04-25-2000 at 11:46 (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
TABLE OF CONTENTS
         4. I would like to set the AUTH_ONLY param also.
        Author David Pike on 03-06-2001 at 19:39 (EST)
but uShop 3.0 does not have this sub any more. please help? thanks.
TABLE OF CONTENTS
                 5. RE: I would like to set the AUTH_ONLY param also.
                Author Bill Weiner on 03-07-2001 at 06:47 (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!
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.