'description'=>t('An error occurred while processing the payment for this order. Verify the payment transactions for this order, and make any corrections necessary before changing its status.'),
'state'=>'pending',
'weight'=>20,
);
return$order_statuses;
}
/**
* Form used to collect Moneris data.
*
...
...
@@ -409,7 +427,7 @@ function commerce_moneris_hpp_server_url($settings) {
drupal_set_message(t('Payment was canceled.'),'error');
}
else{
// If the payment failed, display an error meesage.
drupal_set_message(t('We were unable to process your payment. Please enter your information again or try a different card.'),'error');
if($cancel){
drupal_set_message(t('Payment was canceled. Please try again.'),'error');
}
// If the response code is null.
elseif($response_code=="null"){
// Print an error message with message data generated by Moneris.
drupal_set_message(t('There was an error processing your payment: '.$message.'.<br />Please try again. If the problem persists please contact the site administrator.'),'error');
}
else{
// If the payment failed, display an error message.
drupal_set_message(t('We were unable to process your payment. Please enter your information again or try a different card.'),'error');
drupal_set_message(t('An unknown error occurred while attempting to process your payment. Please try again. If the problem persists please contact the site administrator.'),'error');