Add this code to the failure page:
<?php
@session_start();
var_dump($_SESSION);
?>
The resulting code will include details on why it failed. If you have a hard time interpreting it, view source on the page and copy the code and post it back here in the private area since it may include api credentials. I'll take a look and tell you what might be wrong.