add the following code on the failure page in the body:
<?php @session_start(); var_dump($_SESSION); ?>
this will write the session contents to the page including the response from the gateway. The gateway response will include details on why the transaction failed.