I don't think it's your code. I had the same problem, then went to the 2checkout.com website to figure it out. Their own demo generates the same error. I have not been able to get a hold of a human being at 2checkout.com to figure out what' s going on yet...
2checkout.com demo store:
http://www.acmeonlinebooks.com/