Discover a suite of powerful free tools crafted for human like precision . unleash the potential of your website with these intuitive solution that seamlessly blend automation with personal touch . with these versatile user friendly tools revolutionizing how you conquer challenges and propel your online visible to unprecedented heights
`;
}
// Function to display error message
function displayError(message) {
const resultDiv = document.getElementById('result');
resultDiv.style.display = 'block';
resultDiv.innerHTML = `
${message}
`;
}
// Event listener for the Check button
document.getElementById('checkButton').addEventListener('click', function() {
const ifscCode = document.getElementById('ifscCode').value.trim();
if (!validateIFSC(ifscCode)) {
displayError('Please enter a valid IFSC code in the correct format (e.g. SBIN0000001).');
} else {
fetchBankDetails(ifscCode);
}
});
Features:
Input Validation: Checks if the IFSC code follows the correct format (e.g., 4 letters, a 0, and 6 alphanumeric characters).
API Integration: Fetches bank details from the Razorpay free IFSC API.
Responsive Design: Works seamlessly on both desktop and mobile devices.
Colorful Styling: Clean and modern user interface with interactive elements.
How It Works:
IFSC Code Input: The user inputs an IFSC code.
Validation: The code is validated against the correct pattern using a regular expression.
API Call: If the IFSC code is valid, an API call retrieves the bank details.
Display Results: The bank's name, branch, address, city, and state are displayed, or an error message is shown if the IFSC is incorrect.
This tool helps users check the validity and details of any IFSC code effortlessly.
Comments
Post a Comment