This project demonstrates how to integrate Razorpay Payment Gateway in a Spring Boot MVC application. It supports payment creation, frontend checkout, and webhook handling for real-world eCommerce or service-based applications.
- π Secure Razorpay API integration
- π§Ύ Order creation via Razorpay REST API
- π³ Dynamic checkout page with Razorpay JavaScript SDK
- π₯ Webhook endpoint for payment success/failure
- β Status tracking for payments
- π§ͺ Test credentials ready for sandbox mode
| Component | Technology |
|---|---|
| Framework | Spring Boot MVC |
| Language | Java 17 |
| Template Engine | Thymeleaf (optional) |
| JSON Processing | Jackson |
| Build Tool | Maven |
| Payment Gateway | Razorpay |
- Java 17+
- Maven
- Razorpay account (test mode or production)
Update application.properties:
razorpay.key_id=your_key_id
razorpay.key_secret=your_key_secret
razorpay.currency=INR
razorpay.company_name=Your Company Name
razorpay.logo_url=https://yourdomain.com/logo.png
--
# Clone the repo
git clone https://github.com/your-username/RazorPayIntegration.git
cd RazorPayIntegration
# Build and run
./mvnw spring-boot:run