Razorpay INVALID_CURRENCY_ERROR

The currency specified in the transaction is not supported.

Understanding Razorpay: A Leading Payment Gateway

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.

Identifying the Symptom: INVALID_CURRENCY_ERROR

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.

Exploring the Issue: What Causes INVALID_CURRENCY_ERROR?

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.

Common Causes

  • Using a currency code that is not supported by Razorpay.
  • Typographical errors in the currency code.
  • Incorrect API request format.

Steps to Fix the INVALID_CURRENCY_ERROR

To resolve the INVALID_CURRENCY_ERROR, follow these actionable steps:

Step 1: Verify Supported Currencies

Ensure that the currency you are using is supported by Razorpay. You can find the list of supported currencies in the Razorpay Documentation.

Step 2: Check Your API Request

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).

Step 3: Update Your Code

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"
}

Conclusion

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.

Try DrDroid: AI Agent for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

Try DrDroid: AI for Debugging

80+ monitoring tool integrations
Long term memory about your stack
Locally run Mac App available

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Thank you for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.
Read more
Time to stop copy pasting your errors onto Google!

MORE ISSUES

Deep Sea Tech Inc. — Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid