• 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.

    https://www.ads-software.com/extend/plugins/thecartpress/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Inigo Gonzalez

    (@inigoini)

    Hi,

    Why you don’t set your site in debug mode? (wp_config.php set WP_DEBUG to true)

    Best regards

    Thread Starter teeray

    (@teeray)

    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

    (@inigoini)

    Hi, teeray

    I’ll take a look…

    Plugin Author Inigo Gonzalez

    (@inigoini)

    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

    (@teeray)

    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

    (@inigoini)

    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

    (@teeray)

    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

    (@inigoini)

    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

    (@teeray)

    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

    (@inigoini)

    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.