Why do I receive the error 422: Unable to Decrypt Data using the Card Component or Drop-In?
422 error message
If our system can’t decrypt the encrypted data you’re sending with your payment requests, you’ll receive the 422: Unable to Decrypt Data error message.
Troubleshoot
- Ensure your credentials for frontend authentication (origin key or client key) and for backend authentication (API key or basic authentication) are generated on the same API Credential.
- Check if these keys are generated in the same environment (test/live) as the endpoints you’re using. Don’t use keys generated on the test environment in requests to our live environment.
- Pass the encrypted values exactly how you collected them from the frontend. Make sure you’re not accidentally truncating or changing the values.
- Check if your payment request is structured in the correct way.
Tip: Learn more on encryption and decryption.
Was this article helpful?
Let's practice
Learn more on this topic and practice what you’ve learned.
Go to your Customer Area