SahilWeb-lab / RazorPayIntegration

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.

Home Page:http://localhost:8080/orders

Repository from Github https://github.comSahilWeb-lab/RazorPayIntegrationRepository from Github https://github.comSahilWeb-lab/RazorPayIntegration

πŸ’³ Razorpay Integration with Spring Boot MVC

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.


πŸ“¦ Features

  • πŸ” 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

🧰 Tech Stack

Component Technology
Framework Spring Boot MVC
Language Java 17
Template Engine Thymeleaf (optional)
JSON Processing Jackson
Build Tool Maven
Payment Gateway Razorpay

πŸ”§ Prerequisites

  • Java 17+
  • Maven
  • Razorpay account (test mode or production)

πŸ”‘ Razorpay Configuration

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

About

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.

http://localhost:8080/orders


Languages

Language:HTML 50.5%Language:Java 49.5%