Credit Card Error Messages

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Credit Card Error Messages

Post by Carolharry » Tue Jun 09, 2009 7:30 am

How do I find what error messages does AbleCommerce give when the credit card given by the user is invalid.

For Eg:- Wrong zip code, Incorrect CVV2 match, Wrong expiration date, Credit card Expired etc, Gateway is not responding.

Is there any documentation on list of errors that AbleCommerce will give to the user when validating his card. I am not able to test these errors with test cards and Payment Gateway in Testmode. We are using PayFlow Pro payment gateway.

Appreciate any help.

Thanks,
Carol

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Credit Card Error Messages

Post by mazhar » Tue Jun 09, 2009 8:58 am

Check Website/Checkout/PaymentForms/CreditCardPaymentForm.ascx file for all validation messages. You can found these messages in ErrorMessage part of Validator controls.

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Credit Card Error Messages

Post by nickc » Tue Jun 09, 2009 9:11 am

Those messages come from the gateway/processor - in your case, PayFlow Pro. You'd have to get the list from them.
You can review those errors when they happen by looking in the ac_Transactions table.

Here's a nVelocity snippet that does that. I send a "Transaction Failed" email to site users.

Code: Select all

<table class="Email">
<tr><th colspan="4">Payments for Order $order.OrderId</th></tr>
<tr>
<th>Payment</th><th>Ref#</th><th>Amount</th><th>Status</th>
</tr>

#foreach($payment in $order.Payments)
<tr>
<td valign="top">$payment.PaymentMethodName</td>
<td valign="top">$payment.ReferenceNumber</td>
<td valign="top">$payment.Amount.ToString("C")</td>
<td valign="top">#foreach($transaction in $payment.Transactions)
$transaction.TransactionType $transaction.TransactionStatus ($transaction.ProviderTransactionId) - $transaction.ResponseMessage
#end
</td>
</tr>
#end

</table>

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Credit Card Error Messages

Post by Logan Rhodehamel » Tue Jun 09, 2009 9:13 am

I am not sure if it applies to live accounts in test mode, but with test accounts if you make purchases of over $1000 PayFlow returns errors based on the amount. For example if you attempt to pay for an order that totals 1012, PayFlow will return a decline result. You might try that and see what it does in your test mode. If that works, then I can give more details about how you can test various errors from the customer perspective.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Credit Card Error Messages

Post by jmestep » Tue Jun 09, 2009 9:28 am

There are also entries in the App_Code/StoreDataHelper.cs that take the response from the gateway and translate it:
//US DOMESTIC CODES
case "A": return "Partial Match";
case "E": return "Invalid";
case "N": return "No Match";
case "R": return "Unavailable";
case "S": return "Not Supported";
case "U": return "Unavailable";
case "W": return "Partial Match";
case "X": return "Match";
case "Y": return "Match";
case "Z": return "Partial Match";
//INTERNATIONAL CODES
case "B": return "Partial Match";
case "C": return "No Match";
case "D": return "Match";
case "G": return "Not Supported";
case "I": return "No Match";
case "M": return "Match";
case "P": return "Partial Match";
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Carolharry
Commander (CMDR)
Commander (CMDR)
Posts: 121
Joined: Wed Dec 17, 2008 9:13 am

Re: Credit Card Error Messages

Post by Carolharry » Tue Jun 09, 2009 10:02 am

Hi Logan

You are right. Payflow Pro declines if the amount is more than 1000$. That's what we have right now in our application.
But in Testmode in AbleCommerce order amont > 1000$ is making a successful transaction.

jmestep

I saw code in appdata/storedatahelper. I saw references to CVV methods only in Admin/orders where we have order summary which displays CVV2 match/no match etc.

I want to find what are the messages that will be shown to the user if there is a cvv2 mis match, or if Payment Gateway is not responding, or expired card etc.

I see "warning messages" property which might have error messages


List<string> warningMessages = checkoutResponse.WarningMessages;
if (warningMessages.Count == 0)
warningMessages.Add("The order could not be submitted at this time. Please try again later or contact us for assistance.");
if (CheckedOut != null) CheckedOut(this, new CheckedOutEventArgs(checkoutResponse));

But I don't see where these warning Messages is being used to show messages to the user. (I am not looking for messages in ASP.net validation controls).

Appreciate all your responses.

Thank you,
Carol

Post Reply