Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

If the method is AN_METHOD_CC submit cclastfour, don't send for ECHECK.

  • Loading branch information...
commit 555759709ce34fea810a538b69ad0ca66cd0f95f 1 parent c024e8c
ethem authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 enrol/authorize/authorizenetlib.php
4 enrol/authorize/authorizenetlib.php
@@ -221,9 +221,11 @@ function authorize_action(&$order, &$message, &$extra, $action=AN_ACTION_NONE, $
221 221 return false;
222 222 }
223 223 $poststring .= '&x_type=CREDIT&x_trans_id=' . urlencode($order->transid);
224   - $poststring .= '&x_card_num=' . sprintf("%04d", intval($order->cclastfour));
225 224 $poststring .= '&x_currency_code=' . urlencode($order->currency);
226 225 $poststring .= '&x_amount=' . urlencode($extra->amount);
  226 + if ($method == AN_METHOD_CC) {
  227 + $poststring .= '&x_card_num=' . sprintf("%04d", intval($order->cclastfour));
  228 + }
227 229 break;
228 230 }
229 231

0 comments on commit 5557597

Please sign in to comment.
Something went wrong with that request. Please try again.