53 Commits

Author SHA1 Message Date
ethem
df90fb983d Bumped version and new rename field upgrading for HEAD. 2006-11-17 17:54:17 +00:00
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
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
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
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
79c63c4415 + New ENUM field: paymentmethod(cc,echeck);
Store in database and when calling authorize_action() pass this method. Hence, removed $method=AN_METHOD_CC from this function.
    If a refund will be do, unset($order->paymentmethod); Because this field comes when joining(enrol_authorize)

+ AN_METHOD_CC and AN_METHOD_ECHECK is now lower case, because these fields are stored in database as enum.
  Eloy's response:
   They are lowercase because we decided to use lowercase identifiers everywhere and enum contents are,
   from a DB perspective, identifiers.

  Ok, NP. :)) set_config('an_acceptmethods', strtolower($CFG->an_acceptmethods)); solves this.
2006-08-31 18:24:37 +00:00
ethem
6b1d27020d Ported AUTHORIZE_ECHECK changes into HEAD. (cvs update -j HEAD -j AUTHORIZE_ECHECK)
* New Feature (Authorize.net eCheck)

Authorize.Net provides an exclusive, fully integrated electronic check payment method, eCheck.Net.
Using eCheck.Net, merchants can accept and process payments from consumer and corporate bank accounts
directly from their Web site or through the Authorize.Net Virtual Terminal. By accepting electronic checks,
you expand the payment options available to new and existing customers, enhancing customer loyalty and
potentially increasing sales.

+ Lower Fees - Lower rates than credit cards or PayPal.
+ More Efficient - eCheck.Net does everything online, eliminating the cost and inconvenience of manually
  processing paper checks and waiting for checks in the mail.
+ Fully Integrated Solution - No third-party integration required implementing eCheck.Net is easy
  for merchants already using the Authorize.Net Payment Gateway.
+ Integrated Reporting - Provides a combined view of all eCheck.Net and credit card payment transactions.
  Reconcile payment and billing activity using online reports and statements.
+ Ship Product Sooner - Improved up-front transaction validation that returns the status of transactions faster.
+ Security - Authorize.Net uses the latest 128-bit Secure Socket Layer (SSL) technology for
  secure Internet Protocol (IP) transactions.


== TO DO ==

- Generate Echeck forms.
- Show users a echeck option if admin enabled echeck method.
- Allow admins/teachers to enrol a student using echeck method (FIX: role consept)

==========
2006-08-30 10:29:10 +00:00
ethem
839958faf6 * $CFG->teachermanagepayments will have to go since we are moving away from the rigid hardcoded teacher role concept.
* If a teacher has_capability('enrol/authorize:managepayments'), send email about pending orders expiring.

* All isteacher converted to has_capability.
2006-08-14 15:06:11 +00:00
ethem
abaeae30f7 Guests can NEVER manage payments. CAP_PREVENT to CAP_PROHIBIT. 2006-08-14 13:42:35 +00:00
ethem
79469c6600 Roles support added: enrol/authorize:managepayments 2006-08-14 13:29:24 +00:00
ethem
067d3cd138 Comment added. 2006-08-10 10:55:42 +00:00
stronk7
433a13bc22 index2fk performed 2006-08-09 15:45:27 +00:00
stronk7
e80d52526d Initial commit for enrol tables XMLDB 2006-08-07 18:52:27 +00:00
ethem
411df816d6 - authorize_expired function added to lessen the code.
- All functions in authorize plugin are named with authorize_ prefix.

Merged from 16stable.
2006-07-10 10:17:23 +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
6b4f18622d Put back tjhunt's changes. Invalid merge. Tabs aren't more important than indexes. 2006-05-18 07:13:43 +00:00
tjhunt
450a0a7db7 Merge from stable branch: Convert tabs to spaces in files where there were only a few rogue tabs. 2006-05-17 16:47:44 +00:00
ethem
ddd74daef6 action.php renamed to authorizenetlib.php
Merged from MOODLE_16_STABLE.
2006-05-17 08:18:51 +00:00
martinlanghoff
d7d37bcb60 moodle16cleanup: enrol/authorize not null set which is similar to mysql
and that was upgraded on postgres7.php
2006-05-17 06:35:35 +00:00
ethem
8f152c586d Deleting test transactions are not good. They may be in proggress. Let's update WHERE transid<>'0'.
Merged from MOODLE_16_STABLE.
2006-05-13 06:02:06 +00:00
ethem
3335e3f881 Fix: Delete test transactions before update status as AN_STATUS_AUTHCAPTURE.
Merged from MOODLE_16_STABLE.
2006-05-12 18:36:30 +00:00
ethem
5f7a36628f Create transid indexes for backup & restore speed. 2006-05-04 09:42:35 +00:00
ethem
e66012b563 Penny made it this way on purpose, apparently, to make it work properly on Postgresql, so it reverted. 2006-04-26 15:23:01 +00:00
ethem
f506249f70 Merged from MOODLE_15_STABLE. First time install detection. 2006-04-26 12:38:09 +00:00
ethem
023c3f0ee2 Some indexes were added in 15_STABLE. So, don't show an error message again if indexes are already exist. 2006-04-23 10:15:01 +00:00
moodler
6c3d3b0a97 DOn't show some notces on new install 2006-04-23 04:45:20 +00:00
mjollnir_
ee234b5cac Putting back in the fix for authorize enrol plugin not originally having correct pg version number and table sync with mysql tables and version number 2006-04-18 02:50:46 +00:00
moodler
d87a9d7338 Fixed the upgrade_plugins function so that it automatically
handles the .sql file for first installation (just like activities)
2006-04-16 16:50:55 +00:00
ethem
4440d7a432 Some indexes were added in 15_STABLE. So, don't show a warning message if index already exists. 2006-04-05 05:20:59 +00:00
ethem
f0e2d8b3d4 Merged from MOODLE_15_STABLE. 2006-03-27 12:21:13 +00:00
mjollnir_
742104c531 Merged from MOODLE_15_STABLE: Since there was no pg support for enrol/authorize until later, the versioning was screwey in postgres, so check the table exists first before trying to add columns to it, create it if it is not there 2006-03-26 22:59:23 +00:00
ethem
2eaa289883 Table type fix. ENGINE changed to TYPE. Old mysql version issue. 2006-03-23 14:26:18 +00:00
gustav_delius
ead293420d Questiontypes are doing their own database upgrade now.
I modified the enrollment plugin mechanism to work for any type of plugin
2006-03-22 10:44:54 +00:00
ethem
46bbbb4c85 DB new upgrade system. 2006-02-15 10:15:27 +00:00
ethem
7fec4cb2f9 Rename an_cutoff_hour and an_cutoff_min to an_cutoff. 2006-02-01 13:03:13 +00:00
toyomoyo
f9952852b1 adding more xmls 2006-01-16 01:56:21 +00:00
ethem
66ba9796d4 Moving some constants to const.php. 2006-01-06 12:14:17 +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
9e1c2ba45c No need anymore some database fields. 2005-12-28 16:53:23 +00:00
ethem
378082c25f them fix. :) 2005-12-22 16:32:12 +00:00
ethem
0ccf08fe1d Settlement date. 2005-12-22 15:24: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
ce32fe3aa7 x_invoice_num implementation... 2005-11-21 14:09:52 +00:00
ethem
5e53ffba34 " " fix 2005-08-02 08:27:14 +00:00
ethem
e2946fc1bb "," & " " fix 2005-08-02 08:23:52 +00:00
ethem
c0733012cf PostgreSQL support for enrol::authorize. 2005-08-02 07:45:45 +00:00
moodler
66473eab0e Fixed database upgrade but PHP code still needs work for this module 2005-07-22 17:25:38 +00:00