Problems with ecart 6 and sandbox.
When I set up the payment gateway, I used my own (live) account api settings in order to test the connection to paypal (Paypal ECO).
Now this is working, I wanted to use a sandbox account to test the payment process so I can store the orders in the database on completion and trap any errors that may occur.
I opened the gateway credentials server behaviour and added Sandbox API credentials I know to be working (I tested them in a site I created with ecart 5) and I get a Security header is not valid error
I checked the code on the gateways page to confirm...
$WA_eCart_Debug_Mode = true;
// start gateway PayPal
// start settings PayPal API
$WA_PayPal_PayPal_API_TestMode = true;
if ($WA_PayPal_PayPal_API_TestMode) {
$WA_PayPal_PayPal_API_Username = "xxxx";
$WA_PayPal_PayPal_API_Password = "xxxx";
$WA_PayPal_PayPal_API_Signature = "xxxx";
} else {
$WA_PayPal_PayPal_API_Username = "yyyy";
$WA_PayPal_PayPal_API_Password = "yyyy";
$WA_PayPal_PayPal_API_Signature = "yyyy";
}
// end settings PayPal API