The “INVALID. 4021 : The Card Range not supported by the system.” error is one of the most common issues faced by Magento store owners when processing transactions through Sage Pay. This usually occurs due to a mismatch between the card type attempted to be processed and the payment method configured in your store.
Understanding the Error
The 4021 error specifically indicates that the card range (the first few digits of the card number) is not supported by the system you have integrated with Sage Pay. This could happen if:
- You’ve set up your account to only accept certain types of cards, and a customer tries to use a different type.
- There was an error in the configuration during setup.
Checking Your Configuration
Before troubleshooting further, double-check your payment method configuration on the Sage Pay website or app. Ensure that all necessary card types are enabled for processing. You can do this by following these steps:
- Log into your Sage Pay account.
- Navigate to “Payment Methods” and select the relevant integration.
- Check the settings under “Card Types” to confirm that it includes the type of card being used.
Troubleshooting in Magento
If you’ve verified that the configuration is correct, the issue might lie within your Magento setup or integration with Sage Pay. Here are some steps to troubleshoot:
1. Validate the Integration
Ensure that the Sage Pay payment method is enabled and configured correctly in your Magento admin panel.
- Navigate to “Sales” > “Payment Methods”.
- Locate the Sage Pay method, check if it’s enabled.
- Review all settings (e.g., server URL, vendor name, encryption type) to ensure they match your Sage Pay account details exactly.
2. Check for Plugins or Extensions
Third-party extensions can sometimes interfere with payment processing. If you have any custom plugins installed, temporarily disable them and see if the error persists.
3. Review Transaction Logs
The transaction ID provided in the error message is a valuable troubleshooting tool. Use this to review the full transaction log on your Sage Pay server. This can provide more detailed information about exactly what went wrong.
4. Contact Support
If all else fails, reach out to Sage Pay’s technical support team or use their online resources (https://support.sagepay.com/). They can diagnose issues specific to your account and integration.
Remember, ensuring the security of payment processing is paramount for maintaining customer trust in your e-commerce business. Always follow best practices for data encryption, server configuration, and regular updating of your Magento platform.
In conclusion, while the “INVALID. 4021 : The Card Range not supported by the system.” error can be frustrating, it’s generally a straightforward issue to resolve once you have verified your Sage Pay account settings match your Magento configuration. If you’re having trouble with more complex payment processing issues or need expert advice on optimizing your e-commerce platform, feel free to reach out to our team at Laravel Company. We specialize in providing top-tier development services for Magento and other e-commerce platforms.