Posted: June 21, 2017 at 7:51 am
|
Hello, after updating to the newest version of EE, I am getting a Code 92 error again. I believe it has to do with the URL trying to connect to authorize.net rather than NMI. Which was the case before. I am having trouble finding where I should update the link now, I have updated it in the EEG_Aim.gateway.php file. Do you have any information about whether NMI has updated their url? Any further information is appreciated. old thread: https://eventespresso.com/topic/nmi-replicator-authorize-net-aim/ |
Hi there, You do not need to edit Event Espresso core files to change the URL. You can use the example here: https://gist.github.com/Pebblo/9d0921b2373f47de311fad88d112a215 or https://gist.github.com/joshfeck/5646e8900ac6de96854aa21c720a3a21 You just need to set that function to return the correct URL you want to use and EE will use it, please remove your modifications to EE and use one of the above functions. You can place the function within a Custom Functions Plugin on your site and can confirm it is working from the payment logs within: Event Espresso -> Payment methods -> logs. When you attempt a payment you will create log entries there (likely at least 3 for AIM) if you view those logs you can see which URL is being used there within the ‘Server URL’ field. — Whilst the AIM payment method supports changing the URL we support the Auth.net payment method when connecting to auth.net, we do not have any information on NMI or any other emulator currently. You’ll need to contact NMI and confirm if the URL is correct and see if they can provide any additional information on why your payments are returning errors. |
|
|
adding these to my functions file has never seemed to work which is why updated in your core files |
Then you are doing something different to me 🙂 are you adding the function to a custom functions plugin or your theme’s functions.php file? Here is an example payment I’ve just made with and without a custom plugin with one of the above functions – http://take.ms/cdcW1 The server URL is updating and I’m not editing any of EE’s core files. Have you confirmed if the ‘Server URL’ field has updated in the logs for a new payment after adding one of the above functions? |
|
|
functions.php |
Did you add the code to a functions.php file in the theme or into a custom functions plugin? The latter will work but the former will not. When you modify core files you’ll lose your modifications every time you update the software. |
|
|
Adding it to functions.php will not work? |
|
The server URL field does not show in when I look at the logs. |
|
Sorry, I see it now. It shows on the initial log. It did switch. Any idea why I am still receiveing a Code 92 error than? |
No, functions.php runs too late.
You’ll need to contact NMI and have them investigate. Here is what Auth.net show for error 92: https://support.authorize.net/authkb/index?page=content&id=A627&actp=RSS However your not posting to auth.net you posting to NMI (who basically copy auth.nets setup) so you’ll need to check with them what is cause the error. |
|
|
It seems to be working in functions.php now. but i guess ill add another plugin. What plugin do you recommend? |
Instead of putting your code in functions.php (which is probably running too late, can running your code too late can cause the error you’re seeing) you can put the code into a plugin for custom code. We have a guide that shows how to put the code into a plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
The support post ‘NMI Gateway Emulator error 92’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.