Problem with Authorize.net 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.
Why you don’t set your site in debug mode? (wp_config.php set WP_DEBUG to true)
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?
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’;
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.
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?
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.
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.
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?
- The topic ‘Problem with Authorize.net AIM integration’ is closed to new replies.