Pay Per View payment error 'Security header is not valid'

Using the Pay Per View plugin but the payment is not really working. Clicking pay button throw an error and nothing is processed.

“There was a problem connecting to PayPal to setup your purchase. Please try again.

10002 – Security error – Security header is not valid”

Both sandbox and live PayPal credentials give the same issue.