the eCart store order details behavior is using the razorcart1 cart object, you will need to edit it and change it to use the razorcart object instead.
also there are these 2 code blocks that reference the razorcart1 object
<?php
if ($razorcart1->IsEmpty()) {
$razorcart1->redirStr = "cart.php";
$razorcart1->cartAction = "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($razorcart1->redirStr != "") {
header("Location: ".$razorcart1->redirStr);
}
?>
it looks like you had 2 cart objects at one time, and have run t checkout wizard for both, and the code for the other cart object is still left behind causing hte problenm, it may be worthwhile to delete the checkout pages and re run the checkout wizard.
for the checkout button problem:
the error coming back from paypal is:
Security header is not valid
this error happens if the API Credentials entered are for the live server, but the sandbox server is turned on, or vice versa.