PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Is it possible to connect different forms to different merchant accounts?

  1. We would like to set up multiple donation forms on our site, each for a different nonprofit partner. I'm not seeing a way to do that - it looks like only one gateway can be set up. Is that correct? I hope I'm missing something.

    Posted 8 years ago on Wednesday February 20, 2013 | Permalink
  2. That is correct. Just one account per installation.

    Previously discussed:

    Posted 8 years ago on Friday February 22, 2013 | Permalink
  3. tex77

    The GF ADD-ON can only connect to one account. But you can still use the GravityForms PLUGIN to create forms that connect to different AuthNet accounts -- by handling the AuthNet part yourself, with custom api code in your functions.php, instead of using the GF AuthNet Add-on.

    Posted 8 years ago on Friday March 1, 2013 | Permalink
  4. Will this code work for different accounts, or code similar to this?

    Posted 8 years ago on Saturday March 2, 2013 | Permalink
  5. tex77

    Right. I haven't actually tried using different accounts in a single wp site. But the code from that forum post (actually in contains the AuthNet account credentials:

    # CONFIG
                    # todo secure these creds better!
                    # todo change for prod
            define("AUTHORIZENET_API_LOGIN_ID", "xxxxxxxx"); // enter YOURS
            define("AUTHORIZENET_TRANSACTION_KEY", "xxxxxxxxxxx");  // enter YOURS
            define("AUTHORIZENET_SANDBOX", true); //dev: true
            define("TEST_REQUEST", "FALSE");  // You may want to set to true if testing against production

    So I would think you could just use different credentials there, based on whatever conditions you might have. As the comments in the code show, though, you might want to secure those values better, in a config file or something, perhaps outside the doc-root, with stronger htaccess restrictions, etc. I haven't gotten around to that step for my own site yet.

    Posted 8 years ago on Saturday March 2, 2013 | Permalink
  6. Sounds good. Thanks for thinking outside the box.

    Posted 8 years ago on Saturday March 2, 2013 | Permalink