Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3500716
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:46:08+00:00 2026-05-18T12:46:08+00:00

I am just a little curious. What can I do to make my debugging

  • 0

I am just a little curious. What can I do to make my debugging experience with payment gateways a little easier. On check out, it always does the ajax calls. So there is no way I can print_r() or echo to see the progression. Is there a easier way to do it without destroying nothing. Is it possible to disable the ajax calls and make a regular post.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:46:08+00:00Added an answer on May 18, 2026 at 12:46 pm

    Short answer is: Do this for non-destructive debugging.

    Mage::log("Logging a message");
    

    Long answer follows.

    I haven’t done a ton of payement gateway debugging, but many of the payment gateways have a “debug” setting in

    System -> Configuration -> Sales -> Payment Methods
    

    Check the authorize.net option group for an example of this. If you flip this to the “yes” position debug information will start spewing to the log file. This assumes you’ve turned logging on in

    System -> Configuration -> Advanced -> Developer -> Log Settings
    

    You may need to create the log files yourself in

    var/log/system.log
    var/log/exception.log
    

    Make sure these files are writable by your web server.

    You can also log to these files yourself with the static

    Mage::log("Logging a message");
    

    method call.

    Finally, if your payment gateway doesn’t have a debug setting, you could always fake it. All Payment Model (are supposed to) inherit from the following class

    class Mage_Payment_Model_Method_Abstract
    app/code/core/Mage/Payment/Model/Method/Abstract.php
    

    This class has a method that determines if debugging is on or off

    /**
     * Define if debugging is enabled
     *
     * @return bool
     */
    public function getDebugFlag()
    {
        return $this->getConfigData('debug');
    }
    

    If there’s no debug config flag available, you could temporarily change this method to always return true

    public function getDebugFlag()
    {
        return 1;
        //return $this->getConfigData('debug');
    }
    

    However, I’m not sure how much debugging the base classes do (meaning if there’s no debug flag in the config, that may be because there’s no debugging going on in the payment gateway model itself). Worth exploring though.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a little edit, in case it helps anyone out who happens to stumble
I am sure it's just a little mistake, but i can't find it. When
I'm just realizing a little Web-Hangman where users can play the popular game. Now
I'm making myself a little messenger just for fun. And I want to make
Just a little bit curious, why PuTTY use its own version of private key
Just idly curious why the compare function for stl::sort can't be a static member?
I know a little about it, was just curious to know more. FileInputStream reads
I have created a little password generation script. I'm curious to what improvements can
Possible Duplicate: jQuery selecter whats difference between jQuery(“element”) and $(“element”)? Just a little curious..
Just a little question for you... I'm currently trying to implement a role structure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.