67 Commits

Author SHA1 Message Date
ethem
f5eb7e2fbc Authorize.net Trans IDs are changing in October-Will it break moodle? YES
http://moodle.org/mod/forum/discuss.php?d=106626
2008-09-26 23:42:53 +00:00
ethem
d36e65162a fix skodak's fix, i hope this is last bug. 2008-06-15 09:57:48 +00:00
ethem
79aa29f298 fix skodak's fix :) Skodak, I recommend you to use Zend Development Environment (ZDE)... Tools -> Analyze Code shows bugs & unused variables & what ever you want :D 2008-06-11 17:27:58 +00:00
skodak
1751f48f59 MDL-15099 towards enrol dml conversion 2008-06-05 18:21:44 +00:00
skodak
c6307ef24d MDL-14679 removed all instances of get_records_sql_menu() 2008-06-01 16:08:16 +00:00
dongsheng
6a933f1308 "MDL-14129, fix print_error" 2008-05-14 05:56:10 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
ethem
f31d516e95 Fixo 2008-02-11 13:54:28 +00:00
ethem
a6c970b863 Fixo 2008-02-11 13:52:47 +00:00
ethem
65f0a8f697 Accesbility Improvements. Strings added: orderdetails, cclastfour, isbusinesschecking, shopper 2008-02-11 10:44:09 +00:00
ethem
36814b9910 Accesbility Improvements: -New search option, cc last four; -Paging options 2008-02-11 10:05:06 +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
ca177540ba *** empty log message *** 2008-02-05 17:34:36 +00:00
skodak
76317c73a2 MDL-10791 improve handling of localised floating point numbers in moodle; replaced/fixed some float_format() that were used instead of round(); expect some more patches soon 2007-08-10 15:00:35 +00:00
toyomoyo
d5b04008fd replacing fieldsets with divs in small forms 2007-03-01 06:57:11 +00:00
moodler
6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
ethem
e9fc2634a7 Some XHTML fixes 2007-02-12 16:53:09 +00:00
toyomoyo
537ea84763 MDL-8290, fix for broken plugins 2007-02-09 07:47:14 +00:00
skodak
60af27037b MDL-7861 xhtml transient fixes for not closed input fields - I hope all of them except imported libs are now fixed 2007-01-08 19:34:16 +00:00
ethem
be09f12192 It is time to refund for echeck (business checking). 2006-11-20 09:49:26 +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
8174990c49 Show site name at top when selecting courses. 2006-11-03 12:36:52 +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
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
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
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
16dbf42695 Changed deprecated enrol_student() function to enrol_into_course(). 2006-09-22 12:18:58 +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
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
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
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
fde7c9dfc5 Added Echeck UI validation. 2006-08-31 07:11:31 +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
516b138516 Colorize all orders. 2006-08-18 17:10:30 +00:00
ethem
be4f7e7fec Colorize refunds and show refunded total.
Red: Refunded/Pending Settlement
Green: Refunded/Settled
Black: Cancelled
2006-08-18 16:01:47 +00:00
ethem
49c22bc46b Display capture/void/delete instead of 'Yes'; Merged from 16stable. 2006-08-18 14:54:08 +00:00
ethem
b9c3d818fe enrol_authorize.courseid must be passed to authorize_get_status_action() function to allow a user has_capacity; Joined 2 tables to get courseid field. Merged from 16stable. 2006-08-17 15:43:54 +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
4503e31d9a Roles support added: enrol/authorize:managepayments
TO DO:
* $CFG->an_teachermanagepay will be removed.
   XXX??? What will be do while sending email to teachers about pending orders expiring???
   If this feature enabled and a teacher no role in managepayments, this will send an email and the teacher cannot manage payments.
   Extra work: get_course_teachers and a teacher has_capability(at course level), send this email.

* convert isteacher to has_capability.
2006-08-14 14:23:01 +00:00
ethem
9dec3768bc Merged from 16stable. 2006-07-27 16:11:11 +00:00
ethem
8895a9cdc8 Sometimes ssl connections are slow. Increase max_execution_time to 5 minutes. Merged from 16stable. 2006-07-24 16:32:38 +00:00
ethem
fc9e83ed5c * Update record as soon as possible. If update/insert record fails email to admin to have update manually.
* ignore_user_abort(true) at critical section (before fwrite($fp, "POST /gateway/transact.dll).
   This is last change to ignore request for user.
 * Made some functions "static" to call function directly. So, no need new enrolment_plugin_authorize() instance.
   Now, these are static:
   get_list_of_creditcards, zero_cost, get_course_cost, prevent_double_paid, email_to_admin, check_openssl_loaded
 * Some mtrace cleanup. Removed default new line.

This is big work. When PHP5 is required for moodle in the future, I will add static modifier to functions.
Now and future, this plugin is/will unbreakable; Merged from MOODLE_16_STABLE. :)
2006-07-24 12:19:20 +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