This Python script is designed to validate Razorpay API credentials by making an authenticated request to Razorpay's payments endpoint. It checks the validity of the provided API key and secret by attempting to fetch the payment details which is a lightweight operation.
Simple and easy to use. Utilizes HTTP Basic Authentication for secure transmission of API credentials. Checks the validity of Razorpay API key and secret without performing any actual transaction. Outputs the result of the validation check to the console. Handles exceptions and provides informative error messages.
Python 3.x requests library (Can be installed via pip with pip install requests)
Replace 'your_api_key' and 'your_api_secret' in the script with your Razorpay API credentials. Run the script in your Python environment. Observe the console output for validation results.