28 Commits

Author SHA1 Message Date
Petr Skoda
94b9c2e8da MDL-24321 switching to stdClass in /e*/ 2010-09-21 08:14:41 +00:00
Aaron Barnes
0609036239 enrol/authorize: MDL-22777 upgrade enrol/authorize plugin to new enrol_plugin base class
Patch by Eugene Venter
2010-08-19 02:42:33 +00:00
ethem evlice
64d187aa12 Fixed 2.0 bugs 2010-01-28 14:05:28 +00:00
Petr Skoda
7c7d3afab5 MDL-20766 message_send() used intead of events, it will enable us to improve performance and solve db transactions issues independedntly from events, hopefully this will give us more options in future too because the events are designed specifically for communication "moodle-->external systems" 2009-11-07 10:27:57 +00:00
Petr Skoda
4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
ethem
781c4319e3 + Show "Payments" and "Go to Course" buttons after purchased instead of redirect to course.
+ Restore an_test to original state after account verification. If admin clicks Save Changes after account verification, all transactions go to test mode.
2008-10-10 21:01:27 +00:00
lfrodrigues
2044a2b26f MDL-10107 - Removed old email_to_user with we still arround and added default message processor for user,
adminuser and on messagelib
2008-08-02 00:04:29 +00:00
moodler
3b120e464f MDL-10107 - First check-in of Messaging 2.0 code from Luis Rodrigues, GSOC student.
This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)

This code is not finished yet, a lot of work still has to be done on the
interface.  However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
2008-07-24 08:38:03 +00:00
ethem
2a86987ea9 fix skodak's fix :) 2008-06-11 13:37:53 +00:00
skodak
245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
skodak
1751f48f59 MDL-15099 towards enrol dml conversion 2008-06-05 18:21:44 +00:00
skodak
d907d51a55 MDL-15099 towards enrol dml conversion 2008-06-05 14:06:39 +00:00
ethem
c49c221090 get_recordset() for performance 2008-03-21 11:48:46 +00:00
ethem
b37fa3d553 get_recordset() for performance 2008-03-21 11:47:17 +00:00
ethem
04b8b68848 MDL-10181 User Management Improvements: Cron unenrolment of manual should takes place in the main cron.
It is time to use own enrolment method when calling funcs enrol_into_course, role_assign, role_unassign.

Zend Studio Warning: Assignment in condition (line XX), Solved, one more ()
Assignments in a conditional statement are sometimes the result of a typo.
In many cases, instead of the assignment operator =, the equality operator ==
should be used. When comparing a variable and a non-variable expression,
it is common practice to put the variable on the right-hand side of the equality
operator, so that if the equality operator is erroneously replaced with the
assignment operator, PHP will report a parse error immediately.
This helps you avoid a big subset of this class of bugs.

Merged from MOODLE_19_STABLE
2008-02-06 08:13:20 +00:00
ethem
e08dc18dbe *** empty log message *** 2008-02-05 17:05:29 +00:00
ethem
3309cb829f + fsockopen to file_get_contents
+ no more student
2008-01-18 10:43:21 +00:00
ethem
8bdd962733 Authorize.net account verification 2008-01-16 17:19:30 +00:00
skodak
18b07efaf4 sesskey added to logout.php MDL-8727 2007-03-02 16:47:38 +00:00
ethem
49c81fe0fd We are expecting multiple records, but in debug mode, it gives this error:
Error: Turn off debugging to hide this error.

SELECT id FROM enrol_authorize WHERE userid = '3' AND courseid = '2' AND status=0(with limits 0, 100)

Very strange error in get_record_sql !
2006-11-23 16:22:39 +00:00
ethem
dfe254ceab Moved ABA validator and CC validator functions to enrol_form.php 2006-11-17 13:01:04 +00:00
ethem
f5fbea120f Fixed: MDL-7561
New forms api
2006-11-15 20:44:49 +00:00
ethem
726bf1ead2 get_teacher() to get_users_by_capability(). 2006-11-03 11:20:13 +00:00
ethem
c9befcd1be If an user's credit card cannot be captured on the internet directly, obtain authorization code over phone from customer's bank.
Some users may not wish to use their credit cards on the internet directly for security reasons.
   In this case, you need to obtain an authorization code from user's bank.
   Initially, ask for credit card information from the customer
   like bank name, name on card, card number, expiry date and card validation code
   by means of phone, face-to-face or a billing application.
   Then, call the customer services of user's bank giving this information and demand an authorization code.
   Finally, after obtaining it, login as user to get the user enrolled.
   Alternatively, you can give it to the user saying enrol using this code.
2006-10-30 12:53:15 +00:00
ethem
9c746ce766 + New consts for authorize_action() function:
* AN_RETURNZERO: No connection was made on authorize.net.
  * AN_APPROVED: The transaction was accepted.
  * AN_DECLINED: The transaction was declined.
  * AN_REVIEW: The transaction was held for review.

+ Fix: Speacial handling for echecks: REVIEW; 'Under Review', 'Approved Review', 'Review Failed'
+ New feature: Upload a CSV file for echecks (capability: enrol/authorize:uploadcsv level: user)
+ New feature: Search payments by orderid and transid
+ New function: send_welcome_messages()

merged from 17stable.
2006-10-16 09:39:08 +00:00
ethem
460635599a Autoconfigure accepted echeck bank account types. CHECKING, BUSINESSCHECKING, SAVINGS 2006-09-04 09:44:00 +00:00
ethem
f1b31fb517 Allow all payment methods as default: AN_METHOD_CC, AN_METHOD_ECHECK
authorizenetlib.php autoconfigures payment method as AN_METHOD_CC if the merchant doesn't accept AN_METHOD_ECHECK. First real echeck transaction is enough for this.
2006-09-04 07:33:11 +00:00
ethem
e3949d06af Moved all static functions in authorize class to localfuncs.php as normal function.
Removed abaval.php and ccval.php, because functions in these files moved to localfuncs.php.
2006-09-02 11:49:02 +00:00