is the transaction redirecting to the failure page?
or is it staying on the pp_confirm page?
you can add the following code to the failure page:
<pre><?php var_dump($_SESSION); ?></pre>
to write the session contents, this will contain the full response from the gateway including details on why the transaction is failing.
the var_dump will contain some sensitive information that should be removed before posting here.