Razorpay API Key

ID

razorpay_apikey

Severity

high

Vendor

Razorpay

Family

API Token

Description

Razorpay is a payments solution company in India that allows your business to accept, process, and disburse payments via its product suite. It provides its services via API and Web platform.

Security

Any hardcoded Razorpay API Key is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise your Razorpay account.

Suspicious activity could be detected through Razorpay Webhook, that can give hints on suspicious use of credentials.

Examples

secret=rzp_live_C7ayx7PaJJkARf

Mitigation / Fix

  1. Remove the API Key from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). Go to the User Dashboard, then navigate to Settings → API Keys, locate the API key to be revoked and then revoke it.

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.