mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
If the method is AN_METHOD_CC submit cclastfour, don't send for ECHECK.
This commit is contained in:
parent
c024e8c6f2
commit
555759709c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user