Authorize.net
Maintained by
DualCube Team
Authorize.net makes online course purchases easier by allowing you to assign prices within a specific course section. Apart from that you can easily configure the cost and associated currency of course enrollments. One of the primary benefits of this payment method is its high level of security that keeps your transactions safe and secure.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
It shouldn't be like that! In regards of the Data security, students should be take to a secure Authorize.net page. Furthermore, the pop up looks very unprofessional, like a quick temporary solution.
PLEASE CLARIFY WHAT IS GOING ON AND IF THE SECURE AUTHORIZE.NET PAGE WILL BE BROUGHT BACK!
I replaced in pay_process.php to production link which is api.authorize.net/xml/v1/request.api
and i have new transaction key and API login ID and public key and i reset these 2 times till now, and i still getting this error User authentication failed due to invalid authentication values. is there any solution please.
We've captured some logs from two different versions of the plugin, I hope it helps.
#####################
moodle version 3.10 -
authorize.net plugin
2.5 (Build: 20150610)
2019020401
results: after copying missing files lib/eventslib.php - PHP Fatal error: Cannot redeclare events_get_cached() (previously declared in /var/www/moodle/lib/deprecatedlib.php:2648) in /var/www/moodle/lib/eventslib.php on line 38
#####################
moodle version 3.10 –
authorize.net plugin
2.5 (Build: 20150610)
2020072400
results (plain setup nothing special):
BROWSER DEBUG STACK:
Exception - Call to a member function enrol_user() on null
Debug info:
Error code: generalexceptionmessage
Stack trace:
• line 237 of /enrol/authorizedotnet/update.php: Error thrown
Output buffer:
Notice: Undefined variable: plugin in /var/www/moodle/enrol/authorizedotnet/update.php on line 237
From Apache2 error_log:
[Wed Feb 03 13:31:23.252419 2021] [php7:notice] [pid 310329] [client 10.155.250.143:6979] Debugging: Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result in \n* line 503 of /lib/pagelib.php: call to debugging()\n* line 1543 of /lib/pagelib.php: call to moodle_page->magic_get_context()\n* line 1949 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()\n* line 49 of /enrol/authorizedotnet/pay_process.php: call to bootstrap_renderer->__call()\n, referer:
[Wed Feb 03 13:31:23.395083 2021] [php7:warn] [pid 310329] [client 10.155.250.143:6979] PHP Warning: SimpleXMLElement::__construct(): namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute in /var/www/moodle/enrol/authorizedotnet/pay_process.php on line 72, referer:
[Wed Feb 03 13:31:23.395166 2021] [php7:warn] [pid 310329] [client 10.155.250.143:6979] PHP Warning: SimpleXMLElement::__construct(): <createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> in /var/www/moodle/enrol/authorizedotnet/pay_process.php on line 72, referer:
[Wed Feb 03 13:31:23.395208 2021] [php7:warn] [pid 310329] [client 10.155.250.143:6979] PHP Warning: SimpleXMLElement::__construct(): ^ in /var/www/moodle/enrol/authorizedotnet/pay_process.php on line 72, referer:
[Wed Feb 03 13:31:23.595718 2021] [php7:notice] [pid 310329] [client 10.155.250.143:6979] PHP Notice: Undefined property: stdClass::$authCode in /var/www/moodle/enrol/authorizedotnet/pay_process.php on line 128, referer:
[Wed Feb 03 13:31:23.595807 2021] [php7:notice] [pid 310329] [client 10.155.250.143:6979] PHP Notice: Undefined property: stdClass::$responseCode in /var/www/moodle/enrol/authorizedotnet/pay_process.php on line 129, referer:
[Wed Feb 03 13:31:23.595854 2021] [php7:notice] [pid 310329] [client 10.155.250.143:6979] PHP Notice: Undefined property: stdClass::$transId in /var/www/moodle/enrol/authorizedotnet/pay_process.php on line 130, referer:
[Wed Feb 03 13:31:24.169886 2021] [php7:notice] [pid 310329] [client 10.155.250.143:6979] PHP Notice: Undefined variable: plugin in /var/www/moodle/enrol/authorizedotnet/update.php on line 237, referer:
[Wed Feb 03 13:31:24.173920 2021] [php7:notice] [pid 310329] [client 10.155.250.143:6979] Default exception handler: Exception - Call to a member function enrol_user() on null Debug: \nError code: generalexceptionmessage\n* line 237 of /enrol/authorizedotnet/update.php: Error thrown\n, referer:
https://www.totalassignmenthelp.com/blog/narrative-conventions/
We are still trying to fix it but yes, the previous version still works for many installations. Thank you.
Note that I did change the URL from the test URL to production (in pay_process.php file) and tried again. Some of the errors are the same, but some are different. Below is what is in the apache error log now with an attempted transaction:
[Tue Sep 01 09:35:29.209973 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] Debugging: Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result in \r\n* line 493 of \\lib\\pagelib.php: call to debugging()\n* line 1544 of \\lib\\pagelib.php: call to moodle_page->magic_get_context()\n* line 1934 of \\lib\\setuplib.php: call to moodle_page->initialise_theme_and_output()\n* line 49 of \\enrol\\authorizedotnet\\pay_process.php: call to bootstrap_renderer->__call()\n, referer: https://SITENAME/enrol/index.php?id=74
[Tue Sep 01 09:35:29.436986 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] PHP Warning: SimpleXMLElement::__construct(): namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 72, referer: https://SITENAME/enrol/index.php?id=74
[Tue Sep 01 09:35:29.444986 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] PHP Warning: SimpleXMLElement::__construct(): <createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 72, referer: https://SITENAME/enrol/index.php?id=74
[Tue Sep 01 09:35:29.444986 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] PHP Warning: SimpleXMLElement::__construct(): ^ in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 72, referer: https://SITENAME/enrol/index.php?id=74
[Tue Sep 01 09:35:31.344095 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] PHP Warning: mysqli::real_escape_string() expects parameter 1 to be string, array given in C:\\Apache24\\htdocs\\SITEFOLDER\\lib\\dml\\mysqli_native_moodle_database.php on line 1112, referer: https://SITENAME/enrol/authorizedotnet/pay_process.php
[Tue Sep 01 09:35:31.347095 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] PHP Notice: Undefined variable: plugin in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\update.php on line 237, referer: https://SITENAME/enrol/authorizedotnet/pay_process.php
[Tue Sep 01 09:35:31.348095 2020] [:error] [pid 96840:tid 872] [client NNNN:65163] Default exception handler: Exception - Call to a member function enrol_user() on null Debug: \r\nError code: generalexceptionmessage\n* line 237 of \\enrol\\authorizedotnet\\update.php: Error thrown\n, referer: https://SITENAME/enrol/authorizedotnet/pay_process.php
We are working to debug the issue.
Thank you.
Again, any help would be appreciated. Thanks.
From Apache error.log file:
[Fri Aug 28 08:28:53.287656 2020] [:error] [pid 106900:tid 856] [client NNN] Debugging: Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result in \r\n* line 493 of \\lib\\pagelib.php: call to debugging()\n* line 1544 of \\lib\\pagelib.php: call to moodle_page->magic_get_context()\n* line 1934 of \\lib\\setuplib.php: call to moodle_page->initialise_theme_and_output()\n* line 49 of \\enrol\\authorizedotnet\\pay_process.php: call to bootstrap_renderer->__call()\n, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.505668 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Warning: SimpleXMLElement::__construct(): namespace warning : xmlns: URI AnetApi/xml/v1/schema/AnetApiSchema.xsd is not absolute in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 72, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.512669 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Warning: SimpleXMLElement::__construct(): <createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 72, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.512669 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Warning: SimpleXMLElement::__construct(): ^ in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 72, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.518669 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Warning: curl_setopt(): CURLOPT_DNS_USE_GLOBAL_CACHE cannot be activated when thread safety is enabled in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 115, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.783684 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Notice: Undefined property: stdClass::$authCode in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 128, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.783684 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Notice: Undefined property: stdClass::$responseCode in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 129, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:53.783684 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Notice: Undefined property: stdClass::$transId in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\pay_process.php on line 130, referer: https://SITENAME/enrol/index.php?id=74
[Fri Aug 28 08:28:54.125704 2020] [:error] [pid 106900:tid 856] [client NNN] PHP Notice: Undefined variable: plugin in C:\\Apache24\\htdocs\\SITEFOLDER\\enrol\\authorizedotnet\\update.php on line 237, referer: https://SITENAME/enrol/authorizedotnet/pay_process.php
[Fri Aug 28 08:28:54.126704 2020] [:error] [pid 106900:tid 856] [client NNN] Default exception handler: Exception - Call to a member function enrol_user() on null Debug: \r\nError code: generalexceptionmessage\n* line 237 of \\enrol\\authorizedotnet\\update.php: Error thrown\n, referer: https://SITENAME/enrol/authorizedotnet/pay_process.php
I do not know if this has any bearing, but I noticed that the latest plugin does not have the ipn.php file anymore, yet the instructions still indicate to use this file as the relay response URL.
Any help would be appreciated.
Thanks.
Exception - Call to a member function enrol_user() on null
More information about this error
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 237 of /enrol/authorizedotnet/update.php: Error thrown
Output buffer:
Notice: Undefined variable: plugin in /var/www/html/enrol/authorizedotnet/update.php on line 237
Anyone encounter this error or able to resolve it? This has been persistent for MONTHS and still haven't figured out how to get this issue resolved. Much appreciated and thank you!