Online Watch Shopping Project in Jsp & Servlets MySQL Java PayPal Integrated(Payment Gateway) Ecommerce Project

 


Online Watch Shopping Web-Application with PayPal integrated using Java

"E-Commerce(Electronic Commerce) is a process of doing business through computer networks. The primary goal of an e-commerce site is to sell goods and services online. An online Watch Store is a form of electronic shopping store where the buyer can directly communicate with the seller and can pay for the products for buying it usually through Paypal via the internet"

Technologies used for developing the project are :

1. JSP & Servlet

2. MySQL

3. BootStrap

4. JavaScript

5. Integrated PAYPAL

6. Tomcat Server for executing our web-application

7. Maven for project management

You can also refer to the below pic for a better understanding.

Online Watch Shopping


The project basically has two modules:

1) CUSTOMER MODULE

2) ADMIN MODULE

where Admin can Add the product, Update the product, delete the product, view the total users, view total orders, and many more whereas Customers can view the products, add the product  to the cart, pay the amount for the products, order the products, and many more, 

Let's see each thing in detail

So, Initially, when we run the project we will be able to see the below page.

ADMIN MODULE

This is our home page, where users will be able to see all the watches which is present in the web application.

In the navigation bar, we can see multiple options like brands, watch type, search option, register, login page, etc. We will see each thing in detail within a few minutes.

For each watch, we are able to see the following details.

navigation bar

In the above picture, we can see in the watch description after a few words few dots are there because if we print the complete description here in this cart only then it will not look attractive.
So, now when we click on any product, then we will be able to see the complete watch details like title, description, stock available, discount, and price as shown in the below picture.

watch description after few words

Below the selected products we can also see the related watches based on watch type.

So, when the user tries to add the product to the cart without login he will get an alert as please log in to buy the product as we can see in the below screenshot.

product to the cart without login

Firstly, let's see the Admin module and we will see add to cart and order things that are present in the Customer module.

So, now let's Login as Admin, but before login First, we have to register as Admin. So, for registering we will click on the register option from the navigation bar, after clicking on the register we will be redirected to the registration page as shown below.

registration page


So, after entering the proper details when we click on the register button, we will be able to see the message on the screen Registered  Successfully! and our data will get added to the user table in our database watch fashion like we can see in our database.

database watch fashion


Here, the thing is when we register a user, by default, he is registered as a normal user or we can say, a Customer. So to make this user as admin we have to change the user type to admin from normal as we can see in the below picture.

user type to admin
After making the user type as admin when we apply it at this time, our user becomes admin. So, now let's login as admin,  for this click on the login option from the navigation bar, and then we will be redirected to the Login page as shown below.

redirected to the Login page

So, after entering his correct credentials, when the admin clicks on the login button he will be redirected to the Admin Dashboard page as we can see in the below picture.

Admin Dashboard page

This is Admin's dashboard page, where he can view his profile by clicking on his name in the navigation bar as we can see in the below picture.

Admin's dashboard page

Admin can view the total users present in the application.

total users present in the application

Admin can view the total brands which he has added.

total brands which he has added

Admin can view the total watch types which he has added.

total watch types which he has added


 Admin can view the total products which he has added till now.

view the total products

And the same products are visible on the home page also. After this can see the total Orders till now.

same products are visible on the home page

But until now, no one ordered anything so we are able to see this message that is No orders made by anyone.

After this admin has the option to Add a Watch type. so let's add one type of watch as a watch demo as shown below.

Add a Watch type

So after entering proper detail, when the admin clicks on Add a watch, the watch type gets added to the database and we get a message on the screen as watch category added successfully!

watch category added successfully

As we can see our watch type got added here. In a similar manner, Admin can add the brands. So, let's add the brand as a Brand demo.

add the brand as a Brand demo

So, after clicking on Add Brand our brand will get added to the database and it will show us the message on the screen brand was added successfully, now it will also be visible in our application so let's check whether it got added or not.

Add Brand our brand

After adding brands and watch types let's add the product, so for adding the product basically we will refer to Amazon products to add to our system. So we will search for watches on Amazon and after that, we will add that to our application. So, as we can see below watch is from Amazon, so let's add it to our system.

search for watches on Amazon

So for adding it to our system, firstly we have to save the watch image, and then we will also its title and description, so when we click on the Add product card we will be able to see the below page.

Add product card

In the above image, we can see, we have to fill in mandatory information like Product Title, Description, Price, Quantity, Discount, select Brands, select Watch Type, select a watch for like Men, Women, Boy or Girls and most importantly we have to select the product image which we have saved earlier. 

So, after adding all the important details of the product, when we click on  Add product our data will get added into the database and we will be able to see the message on the screen as Watch added Successfully.

Now. let's check whether our watch got added or not. 

check whether our watch got added or not

So, now when we go to the Home page, we will be able to see this product.

After this, Admin can also Update the product. So to update the products admin has to open that product by clicking on it.

Here, Let's Update the product we have just added, for this let's open it.

Update the product we have just added


After opening the product, we will be able to see the product's complete details. And since now we are Admin that's why we are getting the option of  Delete and Update product.

Delete and Update product.

So when we click on the update product button, we will get the above interface, so from here we can update product details, like we can see I have updated the title and selected another image for our product. Now when we click on the update button our data will get updated in the database and we will be able to see the message on the screen as the product updated successfully and now we can see the updated product in the below pic.

update product button

In a similar manner, Admin can delete any product. For deleting the product admin will just have to click on the delete button after opening that particular product.

After this, Admin can also delete the whole Watch Brand and Watch Type. In the below picture, we can see the total brands and besides that, we can also see the Delete button. 

Admin can delete any product

So, when the admin clicks on the delete button, that particular brand gets deleted and all the products present in that brand get deleted.

In a similar manner, the admin can also delete the watch type this will also work the same as above like delete brands.

So, till now we have seen the functionality which the admin can perform.

Now, Let's log in as a Customer, for that first register as Customer Rahul.

log in as a Customer


After entering the proper details, when we click on the register button, data will be added to the database.

So after registration, we will get the message "REGISTRATION SUCCESSFUL". 

Now we again try to register as the same email Id then we will get the message "THIS USER IS ALREADY  REGISTERED".

Now if we try to log in with the wrong email Id we will get the message as "THIS USER IS NOT REGISTERED".

Here, after login in as a customer Rahul, we will be able to see some more options at the header(Navigation bar) like cartmy orderschange password, and logout as we can see below.

change password, and logout

Customers can search the products based on the brands as shown below when the user clicks on any brand all the products under that brand get filtered and displayed on the home page.

brand get filtered and displayed

In a similar manner, users can filter products based on watch types as shown below.

filter products based on watch types

Apart from this, users can also search the products based on the product title as shown below.

products based on the product title

So all the products which will be matched with the searched product title will get displayed on the home page.

After this Customer will get a Cart option where he can his products to the cart. In the below pic, we are able to see CART IS EMPTY because till now Rahul has not added any product to Cart.

added any product to Cart

The customer will get the My Orders option, where he can see the details of his orders. But since now, the customer has not ordered any products so we are able to see NO ORDERS MADE BY YOU. 

NO ORDERS MADE BY YOU

The customer can change his password by clicking on the change password option.
 
 
clicking on the change password option


Also, In the navigation customer will get a logout option from where he can log out.

customer will get a logout option

And, now very important customer can order the watch, so for the order firstly customer has to add the watch to the cart so let's add the watch to the cart.

customer can order the watch

In the above picture, we are adding 2 quantities of Casio G-Shock...... watch into the cart. After clicking on Add to Cart button, we will get the message on the screen as products added to the cart successfully. 

And as we can see in the below picture in the navigation bar product in the cart got increased to 1 from 0. 

adding 2 quantities of Casio G-Shock

For watching our products in the cart we will click it, so after clicking it we will be able to see the below interface.
watching our products in the cart

And now let's suppose the customer adds the same product to the cart, then this time the new product will not add to the cart instead only its quantity will increase.

customer adds the same product

so let's customer add the same product with quantity 3 as we can see the quantity of the previous product got increased to 5 refer to the below screenshot.

customer add the same product with quantity 3

So in the similar let's add some more products in the Cart. So after adding some more products to the cart it will look like 

add some more products in the Cart

Also, when the customer views his products in the cart, we get Remove options also. By using this we can remove a particular product from the Cart. 

As of now, I'm removing the highlighted product. After clicking on the remove button it will get deleted and show the message on the screen as Product deleted from cart successfully.

Product deleted from cart successfully

And now after adding the required products to the cart, when he clicks the Order button it will get redirected to the PAYPAL's Login page as we can see in the below picture.

PAYPAL's Login page

So here before successful order, customers have to pay the amount through Paypal. And before payment of course firstly customers have to log in on Paypal.

After entering the correct credentials on the login page of Paypal we will be redirected to the home page of Paypal and there we will be able to see the added products in the cart with tax detail with the total amount to pay as we can see in the below picture.

home page of Paypal

Below this, we will be able to see the Continue button, So when we will click on the Continue button it will redirect us to the review page of our web application as we can see in the below picture.

review page of our web application

And now after reviewing it when we click on the Pay Now button, the amount from the customer accounts gets debited and gets credited to the Admin's Account, and after the successful payment products from the cart will get shifted to the My Orders Option and we will be get redirected to the Successful payment page as we can see in the below picture.

Successful payment page

So now when we click on the My Orders Option we will be able to see our ordered products refer to below picture.

My Orders Option

If we see, the delivery date is in processing for products, Actually, Admin will set the delivery date for the customers.

So this is our Online Shopping System with PayPal integrated using Java.

Other practical projects using React & Spring Boot 

1) Employee Management System using Spring Boot Microservices & React.

2) Hotel Management System using Spring Boot & React.

3) E-commerce Project using Spring Boot & React.

4) Gym Management System using Spring Boot & React.


Students can use this project for learning and can submit the project for their final year or Internship projects.

IF YOU WANT THE PROJECT DO CONTACT ME. 

I will give you the full project SOURCE CODE and I will do a COMPLETE SET-UP of the project on your PC or Laptop remotely.

Or You can simply Request for the Project Source Code & Set Up by clicking on the below button.

MAIL ME AT codewithmurad@gmail.com

DM ME ON INSTAGRAM at @codewithmurad

DM ME ON FACEBOOK at @codewithmurad 

DM ME ON TELEGRAM at @codewithmurad 

Connect on My Discord Server: CLICK HERE

Post a Comment

5 Comments

  1. Awesome project I got lots of ideas from your project. Thank you love from Malaysia.

    ReplyDelete
  2. Your paypal integration looking awesome and thanks for helping to set up

    ReplyDelete
  3. Thanks for the quick response and setup.

    ReplyDelete
  4. Thanks a lot for the setup and help running the application :)

    ReplyDelete