Cs-Cart Failed Payment Notification

Currently if a credit card fails to go through CS-Cart just goes back to the checkout page without letting the customer know if or why the payment failed. Is there a way to have Cs-cart display a message if a credit card fails to go through?

Something like "Your payment failed. Please check your card information and zip code for accuracy"
Thanks in advance for any help!

Using CS-Cart version 4.9.3
Warm regards
Mike

It will generally convey the failure message returned from the provider. This is payment method specific.

It will generally convey the failure message returned from the provider. This is payment method specific.

Thanks for your reply. For some reason mine does not give any massage if the payment does not go though. Is there a setting I need to check?

No setting. As I said it's payment provider specific. You'll have to look at what it sets $pp_response_text (from memory so accuracy not guaranteed) to in whatever script is related to your payment provider.

Thanks for your reply. For some reason mine does not give any massage if the payment does not go though. Is there a setting I need to check?

What payment method do you use?

What payment method do you use?

Hello,

I use Paypal Pro.

app/addons/paypal/payments/paypal_pro.php

try to add the following code to the end of file

if ($pp_response['order_status'] == 'F') {
    $pp_response['error'] = $pp_response['reason_text'];
    $pp_response['reason_text'] = __('my_paypal_error_message');
}

then go to translations and add the my_paypal_error_message language variable with required text message

(!) Not tested