close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to display Authorize.net failure response on checkout_failure page

Thread began 11/09/2010 5:40 pm by SaladoGuy | Last modified 11/11/2010 4:48 pm by SaladoGuy | 2602 views | 14 replies

SaladoGuyBeta Tester

Originally Said By: Dave Buchholz
  FWIW, I do something similar to Tom for storing order information although I only store successful orders, unsuccessful orders generate an email to the site owner like ...  



Mine (generated by eCart) also does not store unsuccessful orders. I would REALLY be interested in see how you capture and email the unsuccessful orders - that would be really helpful to me.

Originally Said By: Dave Buchholz
  What I am puzzled about is what you need the form elements for ? The normal flow is that on the confirm page where the authorize.net code is you would normally have something like this at the bottom of the authorize.net code block:

php:
$WAGatewayResponse =  

...


this automatically transfers and payment failure to the checkout_failure.php page and then by including the include and code I mentioned previously you would automatically get the error message displayed.  



YES you are right. I don't know what on earth I was doing wrong but I eventually figured this out. For anyone else as dumb as me I've attached a copy of the working pages.

Let me explain why I was so confused:

In DreamWeaver, while looking at confirm.php, in the Bindings panel there is a whole section of bindings (is that the right way to say that?) that's labeled: "Local Checkout Response (Authorise Net)". In there I can see elements just like in a recordset, session or eCart binding. So I can drag them onto the page. However, if they're used in the confirm.php they're apparently useless, because they don't have any value until AFTER confirm.php is posted (at least, that's the why I understand it).

Now, if I open checkout_failure.php, which I where I /really/ need to use those functions, they are NOT in the Bindings panel. This gave me the initial impression that I had to "get, store and pass them" in confirm.php and then display the value on checkout_failure.php. The only way I could think to pass them from confirm.php to checkout_failure.php was via form post - thus the "need" for the form elements.

Dear WebAssist: This is some sort of bug. The "Local Checkout Response (Authorise Net)" needs to show up in the bindings panel on the checkout_failure.php page.

To add more confusion, when I first posted here, I /did/ have the WA_eCart/Adv_CO_Scripts/AuthNet_PHP.php at the top of checkout_failure.php, and somehow it got removed (yeah I'm sure I did it, I just don't remember doing it). And I was /not/ getting the typical "no such file at line 66..." type warning. So eventually I had the right code function in these (as you suggested) but the function couldn't run cause of the missing include. I finally double checked and found it missing :-( but it works now that I put it back. :-)

In the attached zip file, I also put a screen shot of the bindings panel as seen from confirm.php. The entry that's expanded is the one I'm talking about, that's NOT shown while editing checkout_success.php

THANK YOU for all the help.

Attached Files
authnet_response_examples.zip

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...