PayPal Checkout Transaction fails with 'CURRENCY_NOT_SUPPORTED' error.
The currency specified in the transaction is not supported by PayPal.
Debug error automatically with DrDroid AI →
Connect your tools and ask AI to solve it for you
Understanding PayPal Checkout
PayPal Checkout is a widely used payment gateway that allows businesses to accept payments online. It supports a variety of payment methods and currencies, making it a versatile tool for e-commerce platforms. However, like any other tool, it can encounter issues that need resolution.
Identifying the Symptom
One common issue developers encounter is the 'CURRENCY_NOT_SUPPORTED' error. This error typically appears when attempting to process a transaction with a currency that PayPal does not support. The transaction fails, and the error message is returned.
Explaining the Issue
The 'CURRENCY_NOT_SUPPORTED' error occurs when the currency code specified in the transaction request is not among the currencies that PayPal supports. PayPal supports a wide range of currencies, but not all. You can find the list of supported currencies in the PayPal Developer Documentation.
Common Scenarios
This error often occurs when expanding into new markets or when there is a typo in the currency code. It is crucial to verify that the currency code is correct and supported.
Steps to Fix the Issue
To resolve the 'CURRENCY_NOT_SUPPORTED' error, follow these steps:
Step 1: Verify the Currency Code
Ensure that the currency code used in the transaction is correct. Refer to the list of supported currencies to confirm that the currency is supported by PayPal.
Step 2: Update the Currency Code
If the currency is not supported, choose an alternative currency that is supported. Update your application to use this new currency code. For example, if you initially used 'XYZ', which is unsupported, switch to 'USD' or another supported currency.
Step 3: Test the Transaction
After updating the currency code, test the transaction again to ensure that the error is resolved. Use PayPal's sandbox environment for testing to avoid affecting live transactions.
Conclusion
By following these steps, you should be able to resolve the 'CURRENCY_NOT_SUPPORTED' error in PayPal Checkout. Always ensure that you are using the correct and supported currency codes to avoid such issues. For further assistance, consult the PayPal API Documentation.
Still debugging? Let DrDroid AI investigate for you →
Connect your tools and debug with AI
Get root cause analysis in minutes
- Connect your existing monitoring tools
- Ask AI to debug issues automatically
- Get root cause analysis in minutes