Best Practices

Find the best practices to follow while working with Razorpay APIs.


Follow these best practices while working with APIs.

  • Do not share your API Key secret with anyone or on any public platforms. This can pose security threats for your Razorpay account.
  • While sending API requests to Razorpay servers, it is recommended to honour the TTL of the entries and not cache the DNS aggressively at your end. This is applicable when you are not using Razorpay SDKs.
  • If you are using Razorpay SDKs, our SDKs can handle DNS caching and honour the TTLs that are set in the records.