PayPal Express - returning error message on failure page
I have a cart where the only payment option is going to be PayPal Express but I cannot find a way to return an error message to the client when the transaction fails as there appears to be no bindings available with the "Long Error Message" that I have used before.
Am I missing something ?
THis is the standard page code created:
<?php
//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?><?php
$eCart1->GetContent();
?>
<?php
if ($eCart1->IsEmpty()) {
$eCart1->redirStr = "/view-cart.php";
$eCart1->cartAction = "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link href="WA_eCart/CSS/eC_Clean_Slate_Arial.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="eC_Clean_Slate_Arial" >
<h2>Transaction Not Completed</h2>
<h3 class="eC_InfoHeader" >We're sorry</h3>
<div class="eC_InfoContainer" >
<p class="eC_OrderInfo">Your transaction could not be completed.
</p>
</div>
</div>
</body>
</html>