Moodle Plugins directory: Authorize.net | Moodle.org
Authorize.net
Authorize.Net is a Moodle payment gateway that enables you to accept credit cards, debit cards, and bank transfers for your courses. In addition, it's simple to configure the price and associated currency for course enrollments. You can also take advantage of unique features that other payment gateways do not offer.
To learn more about Authorize.Net functionality, view this document.
Set Course Price - With Authorze.net you can assign prices within a specific course section and configure the cost and associated currency of course enrollments.
Robust Security - It has reliable security and anti-fraud features making it a credible plugin for international transactions.
Advanced Security Option (Premium) -Get fraud prevention filters, a simple checkout system, and user information storage so your students. With Authorize.Net students don’t have to re-enter information every time.
This document will help you to configure the plugin further https://dualcube.com/docs/enrolment-in-moodle-using-authorize-net/
https://www.totalassignmenthelp.com/blog/narrative-conventions/
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:
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.
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!
We have been working on the fixed and we are yet to share the update.
Here is the fixed plugin file: https://drive.google.com/file/d/14OUbJAgNBGOF-O-ptZl5HfODeTx7Sibw/view?usp=sharing
Can you please test and confirm whether the issues are resolved?