problem communicating with the USPS Rate Calculator and getting the error information
What parameter do I need to add to the response request code shown below?
Here is the code on my checkout_failure page:
<?php
//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?><?php
$eCart1->GetContent();
?>
<?php
if ($eCart1->IsEmpty()) {
$eCart1->redirStr = "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_Showplace_Arial.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="eC_Clean_Showplace_Arial" >
<h2>Transaction Not Completed</h2>
<h3 class="eC_InfoHeader" >We're sorry</h3>
<div class="eC_InfoContainer" >
<?php echo $_SESSION["WA_Store_Cart_USPS_FullRequest"]; ?>
<?php echo $_SESSION["WA_Store_Cart_USPS_FullResponse"]; ?>
<p class="eC_OrderInfo">Your transaction could not be completed.
</p>
</div>
</div>
</body>
</html>
...and the response:
Shipping Quote Failed
We're sorry
The error should be below:
Warning: var_dump() expects at least 1 parameter, 0 given in C:\xampp\htdocs\showplaceWebAssist\shipping_failure.php on line 32
USPS:
Full Request: n/a
Full Response: n/a