I updated the /WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php file to correct the problem
after correcting the problem, the checkout page was reporting the following error:
Duplicate entry '0' for key 'PRIMARY'
It was happening on inserting the Details to the details table. on outputting the SQL:
insert into LEDdetail (LEDDetailOrderID,LEDDetailLEDid,LEDDetailProductCode,LEDDetailProductTitle,LEDDetailColour,LEDDetailDimmable,LEDDetailSensor,LEDDetailPrice,LEDDetailQuantity) values (3,333,'LWP0001','4 Watt GU10 LED Bulb - Wide Beam Angle','Cool White','Dimmable','',5.5,1)
there is no value 0 being inserted, it looks like the primary key for the details table is not set to auto increment in the database. you will need to edit the table structure to set the primary key column of the details table to auto increment.
also, the triggers for the store order summary and details should not have set on passing to paypal. on the confirm page, they where set to any form post.
i updated the triggers for those behaviors on the confirm page to button Payment_submit pressed