The error message suggests that the card nonce was generated in a different environment than the one you’re trying to use it in. If you generate a nonce in a sandbox environment, you can’t use it in a production environment, and vice versa.
Ensure that both your client-side and server-side environments match. If you’re testing in a sandbox environment, make sure your client-side code is also generating nonces in the sandbox environment. Similarly, if you’re in a production environment, ensure your client-side code is generating nonces in the production environment.
Also, make sure that the access token you’re using on the server-side matches the environment you’re working in. If you’re in a sandbox environment, use your sandbox access token, and if you’re in a production environment, use your production access token.
This answer was reviewed by @Bryan-Square.