75 Commits

Author SHA1 Message Date
ethem
c1f6386c47 Interactive plugins (authorize and paypal ) must use 'manual'.
Some patches must be applied to lib/db.
http://moodle.org/bugs/bug.php?op=show&bugid=5941
Look: version.patch, lib_db.patch

Eloy, your question about enrol fields for interactive plugins were solved.
Now, we sure we never use authorize and paypal field for backup and restore.
Because manual is active and cannot be disabled when restoring.
Bug #5358 - Add support for enrol systems in backup/restore
http://moodle.org/bugs/bug.php?op=show&bugid=5358&pos=0

Merged from 16 stable.
2006-06-29 10:38:34 +00:00
ethem
c1a2545882 Bug #5941 - Myriad of problems with Paypal enrollmemts, au_enrol.patch
Merged from 16 stable.
2006-06-29 09:49:36 +00:00
ethem
bd4669d344 Very small change. A little performance for cron if admin enabled sending email for pending orders expiring.
1- If dailysettlement is 00:05 and cron executes at this time, nothing will occur. If it is executes at 00:10 it works. I think "<" works faster then "<=" :))
2- Don't compare course->ids by authorize->courseid, because courses are grouped by courseid. We sure each line is unique.
3- Only get pendingorderexpiring strings for sending email if course teachers exist.

Merged from 16stable.
2006-06-20 17:22:00 +00:00
ethem
2bc509a3c1 $a->course: course information added. Merged from stable. 2006-06-15 14:23:04 +00:00
ethem
e3df6104f4 pendingordersemailteacher string added
merged from stable
2006-06-15 13:37:25 +00:00
ethem
b9e829691e When the number of pending orders expiring are sent to the teachers via email, which one is important? The number of the orders or the total of the amounts.
Merged from 16 stable.
2006-06-15 12:55:39 +00:00
ethem
b282e815d5 Order by order count. Courses that have many orders are emailed first. Merged from 16_stable. 2006-06-15 08:06:52 +00:00
ethem
a0333291ba Email subject for pending orders expiring.
Merged from stable.
2006-06-14 16:26:01 +00:00
ethem
71e27db713 If admin set up 'Teachers can manage the payments of the course' and enabled 'Manual-Capture', course teachers are notified about pending orders expiring. Merged from MOODLE_16_STABLE. 2006-06-14 11:53:50 +00:00
ethem
9a4502dd1d Some cron performance. Run clean-ups and send email daily on settlement date.
an_nextmail config deleted, instead of old config new an_dailysettlement inserted into config_plugins table.
Merged from MOODLE_16_STABLE.
2006-06-05 13:12:28 +00:00
ethem
e302f054b3 Just some tidy-ups. Merged from MOODLE_16_STABLE 2006-06-01 07:47:22 +00:00
ethem
8761b0bc4f If config wwwroot starts with 'https', ignore config loginhttps value.
Dependency: Bug #5647; Merged from MOODLE_16_STABLE.
2006-05-30 08:32:43 +00:00
ethem
ddd74daef6 action.php renamed to authorizenetlib.php
Merged from MOODLE_16_STABLE.
2006-05-17 08:18:51 +00:00
ethem
e81e5c1604 Fix: Redirect to order details page 10 seconds later, not home page. Merged from MOODLE_16_STABLE. 2006-05-13 16:18:38 +00:00
ethem
17dd669149 Fix: Don't show newly created orders prior to 2 minutes.
They may be still in proggress and these aren't test transacions(transid=0).
We check timecreated field to prevent this.
MERGED FROM MOODLE_16_STABLE.
2006-05-12 19:56:02 +00:00
ethem
4a1e506a35 Admin can setup which credit card types will be accepted.
Merged from MOODLE_16_STABLE.
2006-05-05 18:16:45 +00:00
ethem
db70762f01 $CFG removed 2006-04-24 16:31:02 +00:00
ethem
a6c656065c Students can view their payments. 2006-03-13 17:57:12 +00:00
ethem
843d9bdc42 Now, teachers can manage the payments in their courses if admin set up this. 2006-03-13 16:47:44 +00:00
ethem
d5e50c25d5 help with $a 2006-03-09 11:35:54 +00:00
martinlanghoff
c6a40e74b9 [multienrol]enrol/authorize: Back put last commit - "manual" is the right name 2006-03-09 05:03:41 +00:00
martinlanghoff
7ce85a1969 [multienrol]enrol/authorize: fix references to 'internal' method 2006-03-09 04:26:37 +00:00
martinlanghoff
aa190ccd1e [multienrol]Merged Ethem Evlice's changes to authorize.net
Minimal changes -- with this, the tip of MOODLE_16_MULTIENROL is fully merged.
2006-03-09 04:14:12 +00:00
martinlanghoff
f9667a5aea [multienrol]Initial commit for multi enrolment plugin feature 2006-03-09 02:48:29 +00:00
ethem
33bbb39b4f Show warning message if cron doesn't work. Review order depends on cron & an_capture_day. 2006-02-01 13:30:45 +00:00
ethem
7fec4cb2f9 Rename an_cutoff_hour and an_cutoff_min to an_cutoff. 2006-02-01 13:03:13 +00:00
ethem
00a354a2da Which form is submitted? Internal or authorize?
This eliminates undefined form->property notices when user submitted internal form.
2006-01-27 14:16:41 +00:00
ethem
d90534da0d Move $this->validate_enrol_form() to check_entry(). 2006-01-27 13:44:11 +00:00
ethem
c5c56ae00d Move card validation to validate_enrol_form function. 2006-01-27 13:34:42 +00:00
ethem
b1fa2cf269 Card Validation and Postal Code field validation fix. (is_int & is_numeric) 2006-01-27 09:16:01 +00:00
ethem
752d465f4d Manage orders with status filter. All/Authorized/Captured/Refunded/Cancelled/Expired. 2006-01-20 16:04:52 +00:00
ethem
c1a91db06e AVS and Reason messages. 2006-01-19 14:57:23 +00:00
ethem
66ba9796d4 Moving some constants to const.php. 2006-01-06 12:14:17 +00:00
ethem
a1c967cc73 Address Verification System (AVS). 2006-01-05 16:28:34 +00:00
ethem
4bfda899b6 Address Verification System (AVS). 2006-01-05 14:30:49 +00:00
ethem
e74d4dc1b4 Send warning email to admins X days ago
how many status of 'authorized/pending capture' transaction is there,
 before transactions have expired.
2006-01-04 18:16:39 +00:00
ethem
8a92768d71 Sql fix. 2006-01-04 08:25:16 +00:00
ethem
241fbcf510 Config an_review_day renamed to an_capture_day.
Inform admin will be expired transactions 2 days ago.
Help for an_review and an_capture_day to admins.
2006-01-03 10:23:28 +00:00
ethem
6aa31974bd Inform students in cron function. 2006-01-02 09:45:07 +00:00
ethem
9e1c2ba45c No need anymore some database fields. 2005-12-28 16:53:23 +00:00
ethem
62d98252ac New authorize.net module is more powerful. :)
- Review order:

   Review order before processing the credit card.

- Auto-Capture:
   If auto-capture enabled the credit card will be captured
   after an_review_day later, then student will be enrolled
   to course, otherwise it will be expired or
   admin must accept/deny payment.

   NOTE: Set-up Transaction Cut-Off Time correctly.
         When the last transaction is picked up for settlement?

- Payment Management:

   Accept/Deny/Refund payments: cvs:/moodle/enrol/authorize/index.php

- TO DO: Batch upload: It will sync authorize.net and moodle from csv file.
2005-12-26 19:21:37 +00:00
ethem
0ccf08fe1d Settlement date. 2005-12-22 15:24:05 +00:00
ethem
1f71e2b91d More description, more documentation. 2005-12-14 15:47:37 +00:00
ethem
a108dc4af5 added amount & currency fields for new transaction. 2005-12-12 17:42:05 +00:00
ethem
d6ed7dae6a CREDIT & VOID implementation.
TO DO:
- admin.php for course payment management.
- Transaction cut-off time
2005-12-12 17:32:00 +00:00
ethem
9e80f003fc REVIEW ORDER FEATURE:
- AUTH_ONLY transaction is used if review enabled.
- CRON captures credit card $an_review_day later.
- VOID and CREDIT weren't implemented yet.
- TO DO: admin.php for course payment management.
- TO DO: batch upload...
2005-12-09 12:00:28 +00:00
ethem
a56d86dd3d Default values must be default values. :) 2005-12-03 11:43:04 +00:00
ethem
07af257354 Credit card types moved to enrol.html. 2005-12-03 11:19:17 +00:00
ethem
c5cc140090 an_review_day can not be negative. 2005-11-24 13:07:35 +00:00
ethem
ce32fe3aa7 x_invoice_num implementation... 2005-11-21 14:09:52 +00:00