Title: Problem with Authorize.net AIM integration
Last modified: August 21, 2016

---

# Problem with Authorize.net AIM integration

 *  [teeray](https://wordpress.org/support/users/teeray/)
 * (@teeray)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/)
 * Apologies for cross-posting with tcp forum, but I have not yet received a reply
   over there so figured I’d try my luck over here.
 * After setting up TCP with authorize.net AIM integration successfully on a 4-site
   multi-site installation, something’s suddenly happened and the final checkout
   does NOT forward to authorize.net for credit card capture and processing. The
   order works fine on the WP side – an email confirmation is generated – but something
   with the integration has gone wrong.
 * Note that this was working fine, however at some point I changed servers and 
   it’s possible it stopped working then.
 * At this point, I need some ideas for where and how to troubleshoot as there is
   no comprehensive information in the documentation. As far as I can see, all the
   authorize.net information is correct, and everything is set up correctly on my
   side.
 * Thanks.
 * [http://wordpress.org/extend/plugins/thecartpress/](http://wordpress.org/extend/plugins/thecartpress/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * (@inigoini)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707638)
 * Hi,
 * Why you don’t set your site in debug mode? (wp_config.php set WP_DEBUG to true)
 * Best regards
 *  Thread Starter [teeray](https://wordpress.org/support/users/teeray/)
 * (@teeray)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707708)
 * Hi Inigo,
 * Thanks for the tip – I’d forgotten something so obvious.
 * The issue is the following:
 * Fatal error: Cannot redeclare class AuthorizeNetException in /var/www/vhosts/
   hostname.org/httpdocs/wp-content/plugins/thecartpress/plugins/authorize.net/anet_php_sdk/
   AuthorizeNet.php on line 29
 * It’s a conflict with gravity forms Authorize.net plugin, which is being used 
   elsewhere in the site. Is there any way to eliminate this conflict?
 *  Plugin Author [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * (@inigoini)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707710)
 * Hi, teeray
 * I’ll take a look…
 *  Plugin Author [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * (@inigoini)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707711)
 * Hi, teeray
 * Please, Could you change a line of code to test this solution?
 * thecartpress/plugins/authorize.net/TCPAuthorizeNet.class.php, line 136
    Change:
   require_once dirname( __FILE__ ) . ‘/anet_php_sdk/AuthorizeNet.php’;
 * to: if ( ! class_exists( ‘AuthorizeNetException’ ) ) require_once dirname( __FILE__).‘/
   anet_php_sdk/AuthorizeNet.php’;
 * Best regards
 *  Thread Starter [teeray](https://wordpress.org/support/users/teeray/)
 * (@teeray)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707714)
 * Hi Inigo,
 * Thank you – that worked.
 * How do I prevent this being overwritten in plugin updates? Also, I have the same
   issue with changes I’ve made to the buy button template – this is overwritten
   every time I update the plugin.
 * Thanks.
 *  Plugin Author [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * (@inigoini)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707715)
 * Hi, teeray
 * I’ve added this code to the core.
    About the buy button template you can copy
   it to your theme. You have modified simple template, isn’t it?
 * Best regards
 *  Thread Starter [teeray](https://wordpress.org/support/users/teeray/)
 * (@teeray)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707716)
 * Hi Inigo,
 * Modified the template in the templates folder. Simply copying tcp_buybutton_template.
   php to my theme folder doesn’t seem to work. Is there a particular structure 
   needed? Using wordpress multisite along with thesis.
 *  Plugin Author [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * (@inigoini)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707717)
 * Hi,
 * This is not the file to copy. That file uses “tcp_buybutton-simple.php”. This
   is the template that you can copy in your theme.
 * Best regards
 *  Thread Starter [teeray](https://wordpress.org/support/users/teeray/)
 * (@teeray)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707718)
 * Inigo,
 * This doesnt enable editing the message that appears when an object is added to
   cart. Is there a template that governs that?
 * Also, is there a template that allows you to change the address order on the 
   checkout screen?
 *  Plugin Author [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * (@inigoini)
 * [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707719)
 * Ah ok.
 * You only can change this text crating a mo file for you.
    At this moment you 
   cannot change the address fields order. We are working to make changes in the
   checkout.
 * Best regards

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Problem with Authorize.net AIM integration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/thecartpress_fefefe.svg)
 * [TheCartPress eCommerce Shopping Cart](https://wordpress.org/plugins/thecartpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thecartpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thecartpress/)
 * [Active Topics](https://wordpress.org/support/plugin/thecartpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thecartpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thecartpress/reviews/)

## Tags

 * [authorize.net](https://wordpress.org/support/topic-tag/authorize-net/)
 * [payment_gateway](https://wordpress.org/support/topic-tag/payment_gateway/)

 * 10 replies
 * 2 participants
 * Last reply from: [Inigo Gonzalez](https://wordpress.org/support/users/inigoini/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/problem-with-authorizenet-aim-integration/#post-3707719)
 * Status: not resolved