#12363 - save atos orders with error payment codes 12 and 17

This commit is contained in:
Rodney Figaro 2017-01-30 10:03:29 +01:00
parent 7999a69a65
commit 6407dc5158

View File

@ -103,25 +103,33 @@ else
$message .= '<span style="color: red;">'.$atos->l('Merchand ID is not valid').'</span>'."\n";
$order_state = _PS_OS_ERROR_;
break;
case 5:
$message .= '<span style="color: red;">'.$atos->l('Bank has rejected payment').'</span>'."\n";
$order_state = _PS_OS_ERROR_;
break;
case 12:
case 17:
die;
$message .= '<span style="color: red;">'.$atos->l('Bank has rejected payment (error code 12/17)').'</span>'."\n";
$order_state = _PS_OS_ERROR_;
break;
case 30:
$message .= '<span style="color: red;">'.$atos->l('Format error').'</span>'."\n";
$order_state = _PS_OS_ERROR_;
break;
case 34:
$message .= '<span style="color: red;">'.$atos->l('Bank said that transaction might be fraudulous').'</span>'."\n";
$order_state = _PS_OS_ERROR_;
break;
case 75:
$message .= '<span style="color: red;">'.$atos->l('Customer has exceeded max tries for its card number').'</span>'."\n";
$order_state = _PS_OS_ERROR_;
break;
case 90:
$message .= '<span style="color: red;">'.$atos->l('Bank server was unavailable').'</span>'."\n";
$order_state = _PS_OS_ERROR_;