Get Instant Solutions for Kubernetes, Databases, Docker and more
Razorpay is a comprehensive payment gateway solution designed to facilitate seamless online transactions. It supports a wide range of payment methods, including credit/debit cards, net banking, UPI, and various wallets, making it a popular choice for businesses looking to integrate payment solutions into their applications.
When integrating Razorpay into your application, you might encounter the INVALID_CURRENCY_ERROR
. This error typically manifests when a transaction is attempted with a currency that Razorpay does not support, or when the currency is incorrectly specified in the API request.
The INVALID_CURRENCY_ERROR
is triggered when the currency code in your transaction request is either not supported by Razorpay or is incorrectly formatted. Razorpay supports a specific set of currencies, and any deviation from this list can result in this error.
To resolve the INVALID_CURRENCY_ERROR
, follow these actionable steps:
Ensure that the currency you are using is supported by Razorpay. You can find the list of supported currencies in the Razorpay Documentation.
Review your API request to ensure that the currency code is correctly specified. The currency code should be in ISO 4217 format (e.g., INR
for Indian Rupee, USD
for US Dollar).
If you find any discrepancies in the currency code, update your code accordingly. Here is an example of how to specify the currency in a Razorpay API request:
{
"amount": 50000,
"currency": "INR",
"receipt": "rcptid_11"
}
By ensuring that the currency code is correctly specified and supported by Razorpay, you can effectively resolve the INVALID_CURRENCY_ERROR
. For further assistance, refer to the Razorpay API Documentation or contact Razorpay support for more personalized help.
(Perfect for DevOps & SREs)
Try Doctor Droid — your AI SRE that auto-triages alerts, debugs issues, and finds the root cause for you.