]> git.mjollnir.org Git - moodle.git/commit
+ New ENUM field: paymentmethod(cc,echeck);
authorethem <ethem>
Thu, 31 Aug 2006 18:24:37 +0000 (18:24 +0000)
committerethem <ethem>
Thu, 31 Aug 2006 18:24:37 +0000 (18:24 +0000)
commit79c63c44157c102a720c10889448317878e71f7c
tree255f77e76bdf3c607087e55bb59eb6e081338e6c
parent6459b8fc8d6812ae10f8f95b98acc485f95c9a39
+ 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.
enrol/authorize/authorizenetlib.php
enrol/authorize/const.php
enrol/authorize/db/install.xml
enrol/authorize/db/mysql.php
enrol/authorize/db/mysql.sql
enrol/authorize/db/postgres7.php
enrol/authorize/db/postgres7.sql
enrol/authorize/enrol.php
enrol/authorize/locallib.php
enrol/authorize/version.php