]> git.mjollnir.org Git - moodle.git/commitdiff
Help file: Uploading Authorize.net CSV file; Merged from MOODLE_17_STABLE.
authorethem <ethem>
Mon, 20 Nov 2006 13:52:27 +0000 (13:52 +0000)
committerethem <ethem>
Mon, 20 Nov 2006 13:52:27 +0000 (13:52 +0000)
enrol/authorize/uploadcsv.php
lang/en_utf8/help/enrol/authorize/uploadcsv.html [new file with mode: 0644]

index 55858b5c4865e5b9df7d4506c2b1ad8232040b77..5ec81f24b3d08af75a8183db28835fa17eb57876 100644 (file)
@@ -123,7 +123,7 @@ function authorize_process_csv($filename)
             continue;
         }
 
-        if (!empty($reftransid) && $transstatus == 'Settled Successfully' && $transtype == 'Credit') {
+        if (!empty($reftransid) && is_numeric($reftransid) && 'Settled Successfully' == $transstatus && 'Credit' == $transtype) {
             if ($order = get_record('enrol_authorize', 'transid', $reftransid)) {
                 if (AN_METHOD_ECHECK == $order->paymentmethod) {
                     $refund = get_record('enrol_authorize_refunds', 'transid', $transid);
diff --git a/lang/en_utf8/help/enrol/authorize/uploadcsv.html b/lang/en_utf8/help/enrol/authorize/uploadcsv.html
new file mode 100644 (file)
index 0000000..df37b75
--- /dev/null
@@ -0,0 +1,24 @@
+<p align="center"><strong>Uploading Authorize.net CSV file</strong></p>
+<p>
+   This action must be performed if you have enabled eCheck (ACH) transactions.
+</p>
+<p>
+<ol>
+   <li>Login to your authorize.net account.</li>
+   <li>Run a REPORT or SEARCH transactions.</li>
+   <li>Select the date range if you search transactions.</li>
+   <li>A button called '<i>Download to File</i>' appears.</li>
+   <li>After clicked the button, tick '<i>Include Column Headings</i>' and select file type to be downloaded:
+       '<i>Expanded Fields/Comma Separated</i>' or '<i>Expanded Fields with CAVV Response/Comma Separated</i>'.</li>
+   <li>For more information click the help link on the page seen.</li>
+   <li>Click Submit button.</li>
+   <li>Once the file has been created, a pop up window will appear prompting you
+       to select the location where the file should be saved.</li>
+   <li>Please leave this window open until the pop up window prompting for your file location appears.
+       You may minimize this window by clicking the _ in the upper right hand corner to continue working.
+       Closing this window by clicking the X will cancel this action and your file will not be downloaded.</li>
+   <li>Once your file has been downloaded and saved to your local machine,
+       click the X in the upper right hand corner of this window to Close.</li>
+   <li>Finally, upload this CSV file to Moodle to enrol the users making payment by echeck.
+</ol>
+</p>