Klyro - Premium Razorpay Payment Gateway in PHP Klyro - Premium Razorpay Payment Gateway in PHP
A secure and ready-to-use Razorpay payment integration solution built in PHP with premium design and enterprise security.Klyro - Premium Razorpay Payment Gateway in PHP
A secure and ready-to-use Razorpay payment integration solution built in PHP with premium design ...
Overview
KLYRO is a complete Razorpay payment integration solution developed in PHP 8.0+ that enables you to accept secure online payments through a streamlined checkout experience with premium dark luxury design.
The solution handles the full Razorpay payment lifecycle including session initialization, payment processing, success confirmation, and cancellation handling. It stores all transaction details in a MySQL database with prepared statements, providing an additional layer of security for transaction validation and record-keeping.
The interface features an ultra-premium dark theme with 24K gold accents, animated gradients, and professional typography. It's fully responsive across all devices from mobile (320px) to 4K displays, with optimized performance delivering page loads under 1 second.
KLYRO supports all Razorpay payment methods including credit/debit cards, UPI (Google Pay, PhonePe, Paytm), net banking, digital wallets, and international cards. The clean PHP code follows PSR-12 standards with no external dependencies, making it easy to customize and integrate into existing projects.
Complete documentation is included with step-by-step setup instructions, security verification guides, customization examples, and troubleshooting for common issues. Special guidance is provided for Pakistan-based developers requiring VPN access during testing.
Changelog
Version 1.0 – Initial Release
Features
- Complete Razorpay payment integration with Checkout.js
- Premium dark luxury UI with 24K gold accents and animations
- Three customizable pricing tiers (Starter/Professional/Enterprise)
- Triple-layer security protection on success pages
- MySQL database storage with prepared statements (SQL injection safe)
- Session-based authentication and validation
- Support for cards, UPI, net banking, wallets, and international payments
- Mobile-first responsive design
- Clean URLs with .htaccess security configuration
- Real-time payment status updates
- Graceful payment cancellation handling
- Comprehensive documentation
- Easy setup with test card support
- Production-ready code
- No external dependencies - pure PHP implementation
Requirements
- PHP 8.0 or higher (8.1+ recommended)
- MySQL 5.x or MariaDB
- Apache 2.4+ with mod_rewrite enabled
- HTTPS/SSL certificate (required for live payments)
- cURL, JSON, and MySQLi PHP extensions
- Razorpay merchant account (free signup at razorpay.com)
- Web hosting with PHP 8.0+ support
- VPN service (Pakistan users only - for testing purposes)
Instructions
- Extract the ZIP file and upload all files to your server root directory
- Enable "show hidden files" in your FTP client to ensure .htaccess is uploaded
- Create a MySQL database and import the database.sql file via phpMyAdmin
- Edit config.php and add your Razorpay API Key ID and Secret Key
- Update database credentials in config.php (DB_USER, DB_PASS, DB_NAME)
- Edit .htaccess line 6 to match your folder structure (e.g., RewriteBase /klyro/)
- Test using card number 4111 1111 1111 1111, CVV 123, any future expiry date
- Verify security by attempting direct access to /success.php and /config.php (should block)
- For production: Complete Razorpay KYC verification and switch to live API keys
Download the script to get detailed documentation.
Other items by this author
| Category | Scripts & Code / PHP Scripts / Payment |
| First release | 9 March 2026 |
| Last update | 9 March 2026 |
| Software version | PHP 8.1, PHP 8.2 |
| Files included | .php, .css, .html, .sql |
| Tags | php, payment gateway, online payment, razorpay, payment api, secure payment, ecommerce payment, payment integration, api integration, payment form, razorpay api, checkout system, php checkout, pay online, php payment |








