Making this script robust
Posted on 2004-10-12
So I need this script as a middle page between my online processor and my web page scripts that are written in Coldfusion.
Since I have not experince, and am really pressured for time, I ask you guys to help.
this script works fine, but apparently to get the online processor to automatically send my users back to my site, they need (according to them) to pull this page and some how store it on their site, which in this case you can see that this code will generate problems, if the variables are not passed in. Here is exactly what they say,
"When you have URLs entered in for return and have it set to "Yes", if our server receives and error from yours, it will put Direct Return to "No" for that transaction, therefore removing the button. This is exactly what I am seeing on your account. I spoke with one of our developers just to be sure, and he explained to me that we were receiving a 500 error from your server and this is why it is happening. You can see that errors are generated immediately. Specifically it is with how your script handles the cart_order_id and index parameters. You should make your script as robust as possible, so that it can handle every scenario that a customer might generate because if your script makes an error that our server receives, you will experience exactly what is happening here today. "
can you guys please help