Debugging eCart Transaction Failure issues
When trying to figure out why your test transactions are failing, eCart has a few built-in functions to help you out. Applying the eCart Payment Gateway Response bindings to your failure pages will help you better understand why a transaction is failing.
What you need to start:
Dreamweaver CS3 or CS4
eCart 5
Site containing eCart checkout pages
Creating Response bindings
The first step is to add the Payment Response option to your list of bindings.
- Open the failure page you wish to apply this to.
Most commonly, this would be checkout_failure or shipping_failure.
- From the Bindings panel, choose Add.
- Select eCart > Checkout > Local Checkout Response.
- From the Gateway menu, choose your payment gateway.

NOTE:PayPal Express users will need to do this twice for the ‘PayPal Authorize Express Checkout’ and ‘PayPal Process Express Checkout’.
Adding the desired bindings
You will now have a new group listed in the Bindings panel for Local Checkout Response. The responses available vary depending on the payment gateway.
- Click and drag any of the options listed to a location within your page.
NOTE:Each option you add to your page will display specific information regarding the error that is being returned. Choose whichever options you feel will be most helpful with diagnosing the issue.
- Besides each binding on your page, you may want to add some descriptive text.
- Press Ctrl (Cmd) + S to save your page.
- Upload your new pages to your live server.
Make sure to upload the WA_eCart folder as well since it will contain new helper files for these bindings.
- Perform another test transaction on your site and review the error you receive.
Using the Full Response option
There is an option under the Local Checkout Response for Full Response. This option includes all the details regarding your error, and may be easier to use than adding individual bindings. However, when using this option, you will need to View Source in your browser to view the error details cleanly.
- When you reach the failure page, you will see a block of text containing your error response.
- Select the View option in your browser.
- Choose Page Source or Source.
- Scroll to the location in your code that contains the error.
The error information will be presented in an organized XML format.
Review the XML code to view the Full Response details of your error.
How do I resolve the error?
The most appropriate method for resolving your error message is to check with your payment gateway for more details on why that particular error may be occurring. Once you have an understanding of what is causing the error, you can make any change necessary to the pages of your site.
NOTE:Once you have resolved the error, you should remove the bindings from the page. As they may display information that you (or your customers) do not want displayed on the page.
Last Updated:
January 3, 2011