PayPal SDK Validation Error: 'Invalid query value for currency'
Problem Statement
When using PayPal as a payment method via Chargebee Payment Components or Chargebee Checkout, you may encounter the following error for certain currencies:
SDK Validation error: 'Invalid query value for currency: <CURRENCY_CODE>'
For example, merchants attempting to accept payments in TRY (Turkish Lira) will see:
SDK Validation error: 'Invalid query value for currency: TRY'
Solution
This error occurs because PayPal does not support all currencies. The PayPal SDK rejects the transaction at the client level before it even reaches PayPal's servers when the currency is not on its supported list.
TRY (Turkish Lira) is not supported by PayPal. This is a PayPal platform limitation and cannot be resolved from the Chargebee side.
How to fix this
-
Check PayPal's supported currencies: Refer to PayPal's supported currencies documentation to verify which currencies are accepted.
-
Use a supported currency: Configure your Chargebee site or checkout to use a currency that PayPal supports (e.g., USD, EUR, GBP).
-
Use a different payment gateway for unsupported currencies: If your business requires collecting payments in a currency PayPal does not support, configure a different payment gateway in Chargebee for that currency using Smart Routing.
Note
This limitation applies to PayPal when used via Chargebee Payment Components, Chargebee Hosted Pages, and API-based integrations.
Was this article helpful?