Step 1. Create a Razorpay Account:
If you don’t have a Razorpay account, you’ll need to sign up for one on the official Razorpay website.
Step 2. Log in to Your Razorpay Dashboard:
Once you have created an account, log in to your Razorpay dashboard.
Step 3. Navigate to Settings:
In the dashboard, you should find a “Settings” option. Click on it to access your account settings.
Step 4. Generate API Keys:
Within the settings, you’ll typically find a section related to API Keys or API Settings. Look for an option like “API Keys,” “API Credentials,” or something similar.
Step 5. Generate Live and Test Keys:
- Razorpay usually provides separate keys for live and test environments. Ensure you are generating the keys based on your current development stage.
- Test keys are used for sandbox or development environments, allowing you to test transactions without real money being involved.
- Live keys are used when your integration is ready for production and real transactions.
Step 6. Copy the Keys:
Once you generate the keys, Razorpay will provide you with both a “Key ID” and a “Key Secret.” Copy and securely store these keys. The Key Secret is sensitive information, and you should not expose it in client-side code or share it publicly.
Step 7. Integrate API Keys into Your Application:
Implement the provided API keys (Key ID and Secret) into your application’s code. This involves configuring your application to use these keys for secure communication with Razorpay’s servers.