WordPress.org

Ready to get started?Download WordPress

Forums

TheCartPress eCommerce Shopping Cart
Problem with Authorize.net AIM integration (11 posts)

  1. teeray
    Member
    Posted 1 year ago #

    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/

  2. Inigo Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

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

    Best regards

  3. teeray
    Member
    Posted 1 year ago #

    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?

  4. Inigo Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, teeray

    I'll take a look...

  5. Inigo Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    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

  6. teeray
    Member
    Posted 1 year ago #

    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.

  7. Inigo Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    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

  8. teeray
    Member
    Posted 1 year ago #

    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.

  9. Inigo Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    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

  10. teeray
    Member
    Posted 1 year ago #

    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?

  11. Inigo Gonzalez
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic