Announcement

Collapse
No announcement yet.

Problem with authorize.net subscriptions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with authorize.net subscriptions

    Hi,
    We are having problems getting authorize.net to process subscriptions. Everything goes smoothly through linking to auth.net's payment page and accepting the credit card. The transaction is approved but the authorize.php script times out. I know it's the correct URL as I checked the HTML of the auth.net payment page. Here's the error I get:

    An error occurred while trying to report this transaction to the Merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.

    This transaction has been approved.
    It is advisable for you to contact the merchant to verify that you will receive the product or service.



    Anyone have this up and working? Any ideas?

  • #2
    Same problem...anyone come up with some response code for the authorize.php script?

    Comment


    • #3
      Apparently, it is not a response code but rather the AN server is checking to see if the script is receiving the data. Before anything is queried you must output something to the screen such as "Please wait while we process your donation". At the bottom (outside the PHP end) I use a simple Javascript redirect to the members Subscriptions page.

      Works flawlessly now...

      Comment


      • #4
        I hacked in code at the bottom of the script. Below are the lines I added to authorize.php. The first line should be in your script. If you replace everything from it down with what's her (obviously tweaking your HTML) then it should work.

        Code:
         
           build_user_subscription($subscriptionid, $userid['userid']);
        //**********BEGIN HACKS
           
           $url=$vboptions[bburl]."/subscriptions.php?";
        // 
        //**********OUTPUT HTML FOR SUCCESSFUL SUBSCRIPTIONS AND REFRESH TO USERCP SUBSCRIPTIONS PAGE
           ?>
        <html>
        <head>
         <title>Thanks!</title>
         <script type="text/javascript">
         <!--
         function exec_refresh()
         {
          window.status = "$vbphrase[redirecting]" + myvar;
          myvar = myvar + " .";
          timerID = setTimeout("exec_refresh();", 100);
          if (timeout > 0)
          {
           timeout -= 1;
          }
          else
          {
           clearTimeout(timerID);
           window.status = "";
           window.location = "<?print($url);?>";
          }
         }
         
         var myvar = "";
         var timeout = 20;
         exec_refresh();
         //-->
         </script>
         <meta http-equiv="Refresh" content="2; URL=<?print($url);?>">
        </head>
        <body>
        <br />
        <br />
        <br />
        <br />
        
        <table width="70%" align="center">
        <tr>
         <td class="panelsurround" align="center">
         <div class="panel">
           
          <blockquote>
           <p>&nbsp;</p>
           <p><strong>Thank you for subscribing to BigSoccer's Premium Member service.  You will now be redirected to My BigSoccer.</strong></p>   
           <p class="smallfont"><a href="<?print($url);?>">Click here if your browser does not refresh.</a></p>
           <div>&nbsp;</div>
          </blockquote>
           
         </div>
         
         </td>
        </tr>
        </table>
        </body>
        </html>
        <?
          }
         }
        }
        else
        {
        //**********OUTPUT HTML FOR FAILURE
        $x_response_reason_text=$_POST['x_response_reason_text'];
           ?>
        <html>
        <head>
         <title>Error</title>
        </head>
        <body>
        <br />
        <br />
        <br />
        <br />
        <table width="70%" align="center">
        <tr>
         <td class="panelsurround" align="center">
         <div class="panel">
           
          <blockquote>
           <p>&nbsp;</p>
           <p><strong>There was an error with your transaction.</strong></p><P>
           The error message is:<BR><?print($x_response_reason_text);?><P>
           <p class="smallfont">Please click the back button on your browser and be sure that all fields are filled out correctly.  If you continue to have problems, please <a href="<A href="http://www.bigsoccer.com/contactus.php">contact">http://www.bigsoccer.com/contactus.php">contact us</a>.</p>
           <div>&nbsp;</div>
          </blockquote>
           
         </div>
         
         </td>
        </tr>
        </table>
        </body>
        </html>
        <?
        //********END HACKS
        }
        
        ?>

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X