485 Commits

Author SHA1 Message Date
skodak
6124048972 major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
moodler
946cbe7029 Added some docs 2006-09-19 16:38:53 +00:00
moodler
6051c68d4b Deleted the old students-based function and created the
new-style setup_enrolments() function that uses roles
to do the tasks required when a user logs in.

Other enrolment plugins should use this as an example/guide

The sync parts of this plugin are not yet fixed.
2006-09-19 16:29:43 +00:00
toyomoyo
9ce384ba1e relacing deprecated functions with capability checks 2006-09-19 14:16:40 +00:00
ethem
7dbc351e11 unenrol_student() -> role_unassign() 2006-09-18 17:32:43 +00:00
moodler
0e1cc9070b Fixed a some debugging statements 2006-09-18 13:24:45 +00:00
moodler
1cd85caf3f Fixed a typo 2006-09-17 16:10:00 +00:00
moodler
9d05e659cc Rewritten manual enrolment module using new core functions.
(except for the last part of cron function, which is still ugly)
2006-09-17 16:08:34 +00:00
moodler
27e1437616 Removing unneeded functions, still needs some modernising 2006-09-16 14:02:51 +00:00
ethem
0fbf82ea78 Tidy up 2006-09-15 12:35:08 +00:00
ethem
dbe35d21bc Tidy up 2006-09-15 12:05:27 +00:00
ethem
a2610c215d Tidy up 2006-09-15 11:40:37 +00:00
ethem
4044e868eb Goodbye old config 2006-09-15 09:57:10 +00:00
moodler
9e7f597e49 Updated some docs 2006-09-11 08:25:49 +00:00
ethem
6cf30eae96 all static functions in enrolment_plugin_authorize moved to localfuncs.php. So, no need enrol.php. 2006-09-06 15:39:32 +00:00
ethem
9456e4b7be *** empty log message *** 2006-09-04 12:31:54 +00:00
ethem
131a7ca81b New config: Echeck bank account types enabled. 2006-09-04 12:09:30 +00:00
ethem
460635599a Autoconfigure accepted echeck bank account types. CHECKING, BUSINESSCHECKING, SAVINGS 2006-09-04 09:44:00 +00:00
ethem
039edfab07 This merchant accepts eCheck (ACH) transactions only; no credit card transactions are accepted. 2006-09-04 07:51:15 +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
07c48fcff6 Error message isn't shown when user clicked button without key if course key is set. 2006-09-04 07:09:44 +00:00
stronk7
afc36fdf2e Patch submitted by Ethem:
Error message isn't shown when user clicked without key.
Multienrol is enabled (course enrol key with authorize)

This patch allows showing error message when user clicked button without key.
2006-09-03 20:16:24 +00:00
ethem
be59e14b9e Remove +}
I like this format:
{
}

not {
}
2006-09-02 15:05:10 +00:00
ethem
134c20fb14 Link to CVV help 2006-09-02 14:28:55 +00:00
ethem
d019150d5b Link to ABA help 2006-09-02 14:11:54 +00:00
ethem
6ce17f1ff0 Don't show "Notice: Undefined property: paymentmethod" 2006-09-02 13:42:28 +00:00
ethem
5b7e05d646 Submit buttons (ccsubmit, echecksubmit) are no longer used. Hidden field paymentmethod is enough for checking forms. 2006-09-02 13:09:21 +00:00
ethem
c8716d80e2 Better handling of forms and configs. 2006-09-02 12:37:01 +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
ethem
d69ce8d4eb Echecks can not be cancelled.
2 actions only for echecks: auth_capture and credit
2006-09-01 17:16:08 +00:00
ethem
0c76d7e375 New string: paymentmethod 2006-09-01 16:43:52 +00:00
ethem
a2cfb0ec00 FFFFFFFFAAAAAANNNNNNTTTTTAAAAASSSSTTTTTIIIIICCCCC
Echeck is ready for usage. I've been buying access into some test courses by echeck. :-)
2006-09-01 15:18:22 +00:00
ethem
0fae43aa7b + Don't show AVS message if not applicable.
+ Email message that translated instead of english if cc type and payment method will be autoconfigured.
2006-09-01 15:05:36 +00:00
ethem
7222c36bf8 * New strings for 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.
2006-09-01 09:04:11 +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
555759709c If the method is AN_METHOD_CC submit cclastfour, don't send for ECHECK. 2006-08-31 15:46:53 +00:00
ethem
c024e8c6f2 Fixed fixo. 2006-08-31 15:10:24 +00:00
ethem
9f7f87a9a6 If the merchant does not accept ACH (echeck) method, set default payment method as AN_METHOD_CC. 2006-08-31 08:06:19 +00:00
ethem
fde7c9dfc5 Added Echeck UI validation. 2006-08-31 07:11:31 +00:00
ethem
a1c4676cf1 User fields for ECHECK 2006-08-30 19:38:28 +00:00
ethem
2c50dc0b63 Some UI stuff for ECHECK 2006-08-30 19:12:28 +00:00
ethem
35f4a0772a Autoconfigure credit card types. This is not a Makefile :))) 2006-08-30 18:59:53 +00:00
ethem
e2863967c6 Added ABA validation funtion. 2006-08-30 17:14:32 +00:00
ethem
d1b86e65cc Some documentation. 2006-08-30 14:33:31 +00:00
ethem
edbe60abb6 Deleted comment. 2006-08-30 14:16:45 +00:00
ethem
75bb06e0aa Some UI changes. 2006-08-30 14:06:40 +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
98d415567c If review enabled, get_users_by_capability('enrol/authorize:managepayments') at SYSTEM_LEVEL and send email for a new pending payment. 2006-08-29 14:30:11 +00:00
ethem
70b1aa8071 get_users_by_capability('enrol/authorize:managepayments') and send email for pending orders expiring. 2006-08-29 13:59:35 +00:00
ethem
0c10124755 merged from 16stable 2006-08-29 09:04:03 +00:00