/razorpay-key-verifier

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.

Primary LanguagePython

razorpay-key-verifier

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.

Features

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.

Requirements

Python 3.x requests library (Can be installed via pip with pip install requests)

Usage

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.