Authorization failed page?!? Am I missing something?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Authorization failed page?!? Am I missing something?

Post by igavemybest » Wed Jul 09, 2008 12:29 am

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? :?:

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

Re: Authorization failed page?!? Am I missing something?

Post by jmestep » Wed Jul 09, 2008 7:06 am

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.
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

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Authorization failed page?!? Am I missing something?

Post by igavemybest » Wed Jul 09, 2008 11:39 am

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.

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

Re: Authorization failed page?!? Am I missing something?

Post by jmestep » Wed Jul 09, 2008 12:13 pm

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.
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

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Authorization failed page?!? Am I missing something?

Post by igavemybest » Wed Jul 09, 2008 12:19 pm

Yeah, there needs to be a real solution for this.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Authorization failed page?!? Am I missing something?

Post by Mike718NY » Wed Jul 09, 2008 12:30 pm

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.

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Authorization failed page?!? Am I missing something?

Post by igavemybest » Wed Jul 09, 2008 12:43 pm

Good idea. I use paypal, but I am sure they have some code available.

Post Reply