How do I resolve the Stripe Token issue?

I have reviewed similar threads whith this problem but although probably resolved there was no reference to the solution: The problem is that I get the following error when I try to do a payment on site:
"The Stripe Token was not generated correctly. Please try again."
I am sure I have copied the API keys in correctly and no gaps.