@@ -7,6 +7,7 @@ Built with a modern MERN stack on the backend and React + React Native on the fr
77## Live Demo
88
99- ** Website:** [ zappify-sepia.vercel.app] ( https://zappify-sepia.vercel.app )
10+ - ** Backend API:** [ zappify-dz5a.vercel.app] ( https://zappify-dz5a.vercel.app )
1011
1112---
1213
@@ -36,6 +37,7 @@ Built with a modern MERN stack on the backend and React + React Native on the fr
3637![ Bcrypt] ( https://img.shields.io/badge/Bcrypt.js-003A70?style=for-the-badge&logo=letsencrypt&logoColor=white )
3738![ Helmet] ( https://img.shields.io/badge/Helmet-FF6B35?style=for-the-badge&logo=helmet&logoColor=white )
3839![ Morgan] ( https://img.shields.io/badge/Morgan-000000?style=for-the-badge&logo=npm&logoColor=white )
40+ ![ Razorpay] ( https://img.shields.io/badge/Razorpay-02042B?style=for-the-badge&logo=razorpay&logoColor=3395FF )
3941
4042### Infrastructure
4143![ Vercel] ( https://img.shields.io/badge/Vercel-000000?style=for-the-badge&logo=vercel&logoColor=white )
@@ -49,12 +51,12 @@ Built with a modern MERN stack on the backend and React + React Native on the fr
4951```
5052+-------------------------------------------------------------------+
5153| |
52- | +-------------+ +-------------+ +-------------+ |
53- | | Front-end | | Back-end | | Database | |
54- | | ReactJS |<---->| NodeJS |<---->| MongoDB | |
55- | |UI Components| | ExpressJS | | Collections | |
56- | | API calls | |API endpoints| | Documents | |
57- | +-------------+ +-------------+ +-------------+ |
54+ | +-------------+ +-------------+ +-------------+ |
55+ | | Front-end | | Back-end | | Database | |
56+ | | ReactJS |<---->| NodeJS |<---->| MongoDB | |
57+ | |UI Components| | ExpressJS | | Collections | |
58+ | | API calls | |API endpoints| | Documents | |
59+ | +-------------+ +-------------+ +-------------+ |
5860| |
5961+-------------------------------------------------------------------+
6062```
@@ -100,6 +102,17 @@ Orders {
100102
101103---
102104
105+ ## Payment Testing
106+
107+ Razorpay is integrated in test mode. Use these credentials to test payments:
108+
109+ | Method | Details |
110+ | ---| ---|
111+ | Card | 5267 3181 8797 5449 / Expiry: 08/26 / CVV: 123 / OTP: 1234 |
112+ | UPI | success@razorpay |
113+
114+ ---
115+
103116## What This Project Does
104117
105118Zappify is built as a real-world e-commerce application that covers the complete shopping journey:
@@ -125,6 +138,8 @@ Zappify is built as a real-world e-commerce application that covers the complete
125138- Add to cart with size validation
126139- Wishlist toggle on product cards and detail page
127140- 3-step checkout - Bag to Address to Payment (COD / UPI / Card)
141+ - Razorpay payment gateway integration (UPI, Card, Netbanking, Wallet)
142+ - Payment signature verification on backend
128143- Order history with tracking timeline
129144- Order cancellation with reason selection form
130145- Google OAuth 2.0 login
@@ -166,6 +181,8 @@ PORT=5001
166181MONGO_URI=your_mongodb_uri
167182JWT_SECRET=your_secret_key
168183NODE_ENV=development
184+ RAZORPAY_KEY_ID=your_razorpay_key_id
185+ RAZORPAY_KEY_SECRET=your_razorpay_key_secret
169186```
170187
171188``` bash
@@ -231,6 +248,18 @@ Zappify/
231248| GET | /api/products | Get all products | No |
232249| GET | /api/products/: id | Get product by ID | No |
233250| POST | /api/products | Create product | Admin |
251+ | POST | /api/payment/create-order | Create Razorpay order | No |
252+ | POST | /api/payment/verify | Verify payment signature | No |
253+
254+ ---
255+
256+ ## Frontend Environment Variables
257+
258+ Create ` frontend/.env ` :
259+ ``` env
260+ VITE_API_URL=http://localhost:5001
261+ VITE_RAZORPAY_KEY_ID=your_razorpay_key_id
262+ ```
234263
235264---
236265
0 commit comments