Page 1 of 1
Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 12:29 am
by igavemybest
After an authorization fails, why does it go directly to the order completed page? It seems like in all other checkouts where I have ever purchased anything, it goes to an authorization failed page, tells me what the problem probably is, Ex., Name not matching card, or billing address, etc. I know there is a trigger an an email template that we can send, but why have the customer go through all that work, and then possibly not return? They should should be able to stay in the store, fix their error, and complete the checkout.

Am I missing something?

Re: Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 7:06 am
by jmestep
There is a new feature in the final build of Able that handles this a little better. (There is a patch to RC3 for it also). This is from the upgrade help docs:
Issue ID 6692 - Validate credit cards prior to order completion
This update is optional unless you have previously installed the patch made available for RC3. By making this change, you are changing the behavior of the checkout process with credit card payments. If a credit card fails to authorize during an order, the customer is directed to another page where they can try to re-enter the credit card information or try a new payment method.
If you do not want to make this change, the default behavior is to accept all orders regardless of the outcome of the credit card transaction.
This change has not been fully tested. If you find a bug, please report it.
1.
Login to the AbleCommerce merchant menu as the admin, or a user with website edit permissions.
2.
Go to Website > Content and Layout
3.
Find and edit the “My Order Page” content scriptlet.
4.
The content field should have this tag:
[[ConLib:MyOrderPage]]
5.
You need to include the "HandleFailedPayments" attribute to turn on failed payment handling, so change it to look like this instead:
[[ConLib:MyOrderPage HandleFailedPayments=”true”]]
6.
After updating the scriptlet content, save the changes.
7.
Find and edit the "Receipt Page" content scriptlet.
8.
The content field should have this tag:
[[ConLib:ReceiptPage]]
9.
Again, you need to include the "HandleFailedPayments" attribute to turn on failed payment handling, so change it to look like this instead:
[[ConLib:ReceiptPage HandleFailedPayments=”true”]]
10.
After updating the scriptlet content, save the changes.
Re: Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 11:39 am
by igavemybest
I tried this, just now actually, and I have The upgraded AC7 Full installed. No dice. Does not work at all, and I tried all different ways.
Re: Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 12:13 pm
by jmestep
I don't think it works for address problems, but it did work for me for wrong expiration date, for example. The page shows the order confirmation, but it also says that the payment wasn't processed.
Re: Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 12:19 pm
by igavemybest
Yeah, there needs to be a real solution for this.
Re: Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 12:30 pm
by Mike718NY
Can't you just insert code and check the Return Values for which error code it
was and then display a message on that page?
This is what I did for a store I built years ago in VB.NET.
I display the error and add an additional message to it:
Code: Select all
....
AuthorizeRequest.BaseAddress = "https://secure.authorize.net/gateway/transact.dll"
ReturnBytes = AuthorizeRequest.UploadValues(AuthorizeRequest.BaseAddress, "POST", Information)
ReturnValues = System.Text.Encoding.ASCII.GetString(ReturnBytes).Split(",".ToCharArray())
If ReturnValues(0).Trim(CChar("|")) = "1" Then [color=#BF0000]
'Card Ok: write card to database.
Response.Redirect("https://...../Receipt.aspx", True)
Else
test.Text = ReturnValues(3).Trim(CChar("|")) & " (" & ReturnValues(2).Trim(CChar("|")) & ")"
If ReturnValues(2).Trim(CChar("|")) = "65" Then
test.Text = test.Text & " " & "Your Verification Number may have been incorrect.
Please wait 2 minutes then try your Verification Number again."
Else
If ReturnValues(2).Trim(CChar("|")) = "11" Then
test.Text = test.Text & " " & "A transaction with identical amount and credit card
information was submitted within the previous two minutes. Please wait 2 minutes
and try your Verification Number again."
End If
End If
Return
ReturnValue 65 = This transaction has been declined.
I forgot why I put the "try Verification Number again" there, but a failed card
number would be caught there too.
And Authorize won't do another transaction before 2 minutes so I let the customer know.
You can check for other codes too.
Re: Authorization failed page?!? Am I missing something?
Posted: Wed Jul 09, 2008 12:43 pm
by igavemybest
Good idea. I use paypal, but I am sure they have some code available.