Commit graph

290 commits

Author SHA1 Message Date
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
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
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