]> git.mjollnir.org Git - moodle.git/commitdiff
If the method is AN_METHOD_CC submit cclastfour, don't send for ECHECK.
authorethem <ethem>
Thu, 31 Aug 2006 15:46:53 +0000 (15:46 +0000)
committerethem <ethem>
Thu, 31 Aug 2006 15:46:53 +0000 (15:46 +0000)
enrol/authorize/authorizenetlib.php

index 8a01a3a7ce6413c09c361e0a5239ab4fbea6d867..61ccee00f4ed8fd128df370765e89c2dd8782607 100644 (file)
@@ -221,9 +221,11 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
                 return false;
             }
             $poststring .= '&x_type=CREDIT&x_trans_id=' . urlencode($order->transid);
-            $poststring .= '&x_card_num=' . sprintf("%04d", intval($order->cclastfour));
             $poststring .= '&x_currency_code=' . urlencode($order->currency);
             $poststring .= '&x_amount=' . urlencode($extra->amount);
+            if ($method == AN_METHOD_CC) {
+                $poststring .= '&x_card_num=' . sprintf("%04d", intval($order->cclastfour));
+            }
             break;
         }