371 Commits

Author SHA1 Message Date
ethem
4902ed7c2f Changed db column(cclastfour) as refundinfo.
Because this field will be used to refund both cc and echeck.
Business checkings can be refunded, too; so mark as 1 this field for business checkings.
That is; refundinfo: is last four digit for credit cards, business checking for echecks.

Merged from MOODLE_17_STABLE.
2006-11-17 16:06:46 +00:00
ethem
dfe254ceab Moved ABA validator and CC validator functions to enrol_form.php 2006-11-17 13:01:04 +00:00
ethem
8dfaffacfb Some cleanup: Removed enrolment_plugin_authorize->authorizeerror; because, new forms lib handles all errors. 2006-11-17 08:49:08 +00:00
ethem
4df4b15524 Business checks can be refunded. Point a flag for it. The cclastfour field will be renamed to refundinfo later. Merged from 17stable. 2006-11-17 08:21:11 +00:00
ethem
1bdf6d2677 <DIV>...</DIV> if other method available. 2006-11-16 16:18:20 +00:00
ethem
4e15f4b9df FIX: MDL-7561
Allow to be chosen the other payment method  if avaiable.
Now, new quick enrol form is ready for usage :)
2006-11-16 14:44:44 +00:00
ethem
3c167c58c1 Show correct string;
Credit card method: Name on card
ECheck: Account owner
2006-11-16 12:38:39 +00:00
ethem
3c07bc5a32 Stop responding on error. 2006-11-16 12:23:40 +00:00
ethem
f5fbea120f Fixed: MDL-7561
New forms api
2006-11-15 20:44:49 +00:00
ethem
19384dfb70 MDL-6937
MDL-7561
MDL-7562

Need to be used new forms api.

Please see also:

* enrol.php: check_entry(), config_form(), process_config()
* localfuncs.php: validate_cc_form(), validate_echeck_form()
2006-11-15 07:39:04 +00:00
ethem
cac9c967df Merged from 17stable. 2006-11-13 08:43:16 +00:00
ethem
eb108480aa New feature: Show my payments only for users who has_capability('enrol/authorize:managepayments') 2006-11-13 07:36:58 +00:00
ethem
b29c7bb2ba Get course before require_login(); Merged from 17stable. 2006-11-12 13:26:14 +00:00
ethem
8174990c49 Show site name at top when selecting courses. 2006-11-03 12:36:52 +00:00
ethem
3baecd1d7e Get payment managers at COURSE level. Merged from 17stable. 2006-11-03 12:09:00 +00:00
ethem
726bf1ead2 get_teacher() to get_users_by_capability(). 2006-11-03 11:20:13 +00:00
ethem
e40106c7db Fix for enrolurl(admin/users.php). Merged from 17stable. 2006-11-02 13:34:52 +00:00
ethem
af3e0ed2ea Make authorize.net config page secure.
See: http://moodle.org/mod/forum/discuss.php?d=56728
2006-11-01 12:36:19 +00:00
ethem
7bb8485d6e Show notice at bottom. 2006-10-31 19:24:10 +00:00
ethem
325d15409b 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 13:07:20 +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
2c46669ba1 New string: All Pending Orders 2006-10-30 11:16:09 +00:00
ethem
2760b4f4cc Show a link for echeck payments if an user has_capability('enrol/authorize:uploadcsv'). 2006-10-30 10:12:20 +00:00
ethem
bf228101fd Get only courses made transactions. This lessens the course list; Merged from 17stable. 2006-10-30 08:33:00 +00:00
stronk7
5d0fc5c33d Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:46:02 +00:00
stronk7
3aac1dc9a0 Deprecating old "upgrade" files. MDL-7214
Merged from MOODLE_17_STABLE
2006-10-26 22:39:10 +00:00
stronk7
19606d8bd5 New upgrade.php file added for this module. MDL-7214 2006-10-26 17:02:31 +00:00
ethem
63693fd835 I found a new function: user_has_role_assignment(). Merged from MOODLE_17_STABLE. 2006-10-26 14:44:53 +00:00
ethem
009a965863 get_courses() is only getting visible courses. This is a problem when an user wants to view old payments. 2006-10-26 08:41:02 +00:00
stronk7
422770d8cb Moving deprecated uses of sql_paging_limit() to the new $limitfrom,
$limitnum parameters in all the get_recordXXX() functions. MDL-7167

Merged from MOODLE_17_STABLE
2006-10-23 23:00:18 +00:00
ethem
821267bccf Fixed merge chars: ======= 2006-10-18 12:45:28 +00:00
ethem
23741665cd Show results and send email to admin. Merged from 17stable. 2006-10-18 12:43:00 +00:00
ethem
c7003d87b9 + 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:53:03 +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
moodler
2d5a4f255b Merged fixes for MDL-6907 from stable 2006-10-11 06:21:58 +00:00
toyomoyo
1b19e8107e fix for MDL-6859, MDL-6860 2006-10-06 06:04:32 +00:00
ethem
dc754f4f56 Put back last commit. Some functions check $extra->id. 2006-10-03 19:39:21 +00:00
ethem
c008cd2fcf If an error occures, id returns 0.
The user, who will be sent email, may be confused for $record->id=0.
Merged from 16stable.
2006-10-03 18:21:14 +00:00
ethem
9c59948e63 * enrol_into_course() doesn't send welcome message unless $course->welcomemessage is set.
This is actually good thing, because we can send our welcome message.

* enrol_into_course() added in Moodle(2006091700), so authorize plugin requires this version.
2006-10-03 18:00:48 +00:00
ethem
b99cb7fd23 No need extra $order->status check. These functions expired() and settled() do it for us. Merged from 16stable. 2006-10-03 09:05:38 +00:00
ethem
37f9ca4e8f Some cleanup for cron. 2006-09-22 16:19:53 +00:00
ethem
f0f8e34c5d isguest() to has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM, SITEID), $USER->id, false) 2006-09-22 15:31:04 +00:00
ethem
778326bef8 Some cleanup. 2006-09-22 14:04:11 +00:00
ethem
33f9bffe90 Last commit for enrol_student().
enrol_student($order->userid, $order->courseid, $timestart, $timeend, 'manual')
to
role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, 'manual'))
2006-09-22 13:50:10 +00:00
ethem
fddf3cfb56 + Changed deprecated enrol_student() function to enrol_into_course().
+ No need extra check: if (!empty($CFG->enrol_mailstudents)):  enrol_into_course calls email_welcome_message_to_user() internally.
2006-09-22 13:33:37 +00:00
ethem
b001dec454 No need get_student_courses() and get_teacher_courses() anymore. 2006-09-22 13:11:49 +00:00
ethem
16dbf42695 Changed deprecated enrol_student() function to enrol_into_course(). 2006-09-22 12:18:58 +00:00
skodak
6124048972 major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
ethem
7dbc351e11 unenrol_student() -> role_unassign() 2006-09-18 17:32:43 +00:00
ethem
0fbf82ea78 Tidy up 2006-09-15 12:35:08 +00:00