Getting error when purchasing product

This is the error that comes up:

There was a problem connecting to PayPal to setup your purchase. Please try again.
10002 - Security error - Security header is not valid

I have the latest plugins and wordpress version. I have the correct API info from Paypal. What else could be wrong? Thanks.