Is it possible to change the message my customers when there Credit card fails. Currently a red box pops up near top of screen with the following message:
[quote]
[center]DECLINE
CVV Indicator=P
AVS Indicator=N
Risk Indicator-00[/center]
[/quote]
I use Sage Payment Solutions for the credit card processing.
This is how I guess cs-cart works.
Customer enters cc info
cs-cart checks if cc number is valid (not if the card is good)
Customer then clicks process order button and then info sent to cc processor which checks if card, date and CCV is good.
if all is ok the order completes.
I assume if a bad cc # is used the processor would reject
If the date is wrong I get the message above.
If the ccv number is wrong it still completes order. (I think this is something that our processor does not have turned on)
I would like a simple message tell the customer that the cc was declined and please check cc number, date and ccv number.
How might I be able to do this? We are using cs-cart 2.1.1
Thanks,
David
Depends on your payment processor. Normally, the message is what's returned from your processor. It could be staticly defined in the file (I.e. a code translated to a message) or it could be returned directly from the processor.
Either way would require some custom modification to your processor script.
You can edit the following file:
payments\sage_payment.php
and replace
$pp_response["reason_text"] = substr($return, 8, 32);
$pp_response["reason_text"] .= "
CVV Indicator=" . substr($return, 42, 1);
$pp_response["reason_text"] .= "
AVS Indicator=" . substr($return, 43, 1);
$pp_response["reason_text"] .= "
Risk Indicator=" . substr($return, 44, 2);
with something similar to:
if ($pp_response["order_status"] == 'P') {
$pp_response["reason_text"] = substr($return, 8, 32);
$pp_response["reason_text"] .= "
CVV Indicator=" . substr($return, 42, 1);
$pp_response["reason_text"] .= "
AVS Indicator=" . substr($return, 43, 1);
$pp_response["reason_text"] .= "
Risk Indicator=" . substr($return, 44, 2);
} else {
$pp_response["reason_text"] = 'YOUR CUSTOM MESSAGE HERE';
}
I started digging for answers, then looked at a few of the orders that had a status of "failed ".
On the orders it show the cryptic message plus a more user friendly message like this
Order status: Failed
Payment processor response: INVALID C_EXP
CVV Indicator=P
AVS Indicator=
Risk Indicator=00
So if I can find how they did that, then I should be able to do the same to the message given to customer.
Thanks,
Dave
How can I capture the information being returned from our CC processor?
[quote name='dsdewitt' timestamp='1417708242' post='198749']
How can I capture the information being returned from our CC processor?
[/quote]
Did you see my post #3?
eConLabs,
I did see your post. After that I saw that in the admin side on the orders it showed a little more info. ie that INVALID C_EXP
So I'm hoping to find out more on the admin side picks this info up. So if I can capture the processors return info, then maybe I will be able to let customers know where there mistake is.
Dave
[quote name='dsdewitt' timestamp='1418135627' post='199225']
I did see your post. After that I saw that in the admin side on the orders it showed a little more info. ie that INVALID C_EXP
So I'm hoping to find out more on the admin side picks this info up. So if I can capture the processors return info, then maybe I will be able to let customers know where there mistake is.
[/quote]
In this case we can offer you the following solution:
$pp_response["reason_text"] = substr($return, 8, 32);
$pp_response["reason_text"] .= "
CVV Indicator=" . substr($return, 42, 1);
$pp_response["reason_text"] .= "
AVS Indicator=" . substr($return, 43, 1);
$pp_response["reason_text"] .= "
Risk Indicator=" . substr($return, 44, 2);
if ($pp_response["order_status"] != 'P') {
$pp_response["result"] = $pp_response["reason_text"];
$pp_response["reason_text"] = 'YOUR CUSTOM MESSAGE HERE';
}
In this case, custom message will be displayed to the customer and you will be able to see the processor response on the order details page for all transaction results.