0% found this document useful (0 votes)
11 views19 pages

Oop Project Report

Uploaded by

yusrasheikh8099
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views19 pages

Oop Project Report

Uploaded by

yusrasheikh8099
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

DR.

PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

PROJECT REPORT ON:


“CREDIT CARD VALIDATER”

OBJECT ORIENTED PROGRAMMING

(313304)

SUBMITTED BY:
VIDHI OZA (35)

SAKSHI GHODE (38)

BHAVIKA DEOLE (41)

AASTHA KUYATE (49)

ARPITA PARSANKAR (60)

UNDER THE GUIDANCE OF:


Prof: S. M. Dhopte

DEPARTMENT OF COMPUTER ENGINEERING

DR. PANJABRAO DESHMUKH GIRLS POLYTECHNI AMRAVATI

2024-2025

1
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

Shri. Shivaji Education Society Amravati


Dr. Panjabrao Deshmukh Girls Polytechnic College

Micro project Report


Course: object-oriented programming
Program: Computer Engineering
Academic Session: 2024-2025

2
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

Certificate

This Is to Certify That the Micro project Titled “CREDIT CARD VALIDATER” in “OBJECT
ORIENTED PROGRAMMING”. Has Completed Been Successfully By vidhi oza (35), Sakshi
Ghode (38), Bhavika Deole (41), Aastha kuyate (49), Arpita parsankar (60).

Under the Guidance of Prof: S.M. Dhopte in Recognition to Partial Fulfillment For The
Diploma In Computer Engineering. (2024-2025)

Prof. S.M. Dhopte Prof. S.M. Dhopte

Guide of Dept. Of Computer H.O.D

Engineering dept. Of Computer

Engineering

3
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

GROUP DETAILS

Sr.no Name Roll.no

1. VIDHI OZA 35

2. SAKSHI GHODE 38

3. BHAVIKA DEOLE 41

4. AASTHA KUYATE 49

5. ARPITA PARSANKAR 60

4
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

Acknowledgment

It is great pleasure for us to acknowledge the assistance & contribution of the number of
Individuals who helped us in presenting the Project “CREDIT CARD VALIDATER”. We have
successfully completed our project with the handful support of Staff, Project Partner,
External Resources, etc. We acknowledge all of them & them for their support.

Special thanks to project guide Prof. S.M. Dhopte, who gave us the valuable guidelines
for the project work. We whole heartedly thank all the staff members & every possible
person who possibly helped us in this project.

We would like to give away gratitude to Prof. S.M. Dhopte, Head of Computer Engg.
Department for prior support in terms of morality, technical aspects & relative guidance
required for the "Crafting library management system A Beginner's Journey into Data base
management system. "Which helped us better grip & quality in every aspect of project.

Our sincere thanks to Prof. V.M. Gulhane, Principal, Dr. Panjabrao Deshmukh Girls
Polytechnic, Amravati, for providing us an opportunity to present & express the ideas of our
project.

Projectees: -

Vidhi oza (35)

Sakshi ghode (38)

Bhavika deole (41)

aastha kuyate (49)

Arpita parsankar (60)

5
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

Declaration

We declare that this written submission represents our ideas in our own words and where
others’ ideas or words have been included we have adequately cited and referenced the
original source. We also declare that we have adhered to all principles of academic honesty
and integrity and have not misrepresented or fabricated or falsified any idea /data
/fact/source in our submission. We understand that any violation of the above will be cause
for disciplinary action by the institute and can also evoke penal action from the sources
which have thus not been properly cited or from whom proper permission has not been taken
when needed.

VIDHI OZA SAKSHI GHODE

BHAVIKA DEOLE AASTHA KUYTE

ARPITA PARSANKAR

6
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

ABSTRACT

This project implements a Credit Card Validator system using Object-Oriented Programming
(OOP) principles. The system validates credit card information, ensuring secure
transactions and preventing fraudulent activities. It checks card numbers, expiration dates,
and CVV codes against industry-standard algorithms (Luhn, MOD10). The system supports
major credit card brands (Visa, Mastercard, Amex). Implemented using [programming
language], this project demonstrates encapsulation, inheritance, and polymorphism.

This project presents a credit card validation application developed in C++. The primary
objective is to verify the authenticity of credit card numbers using the Luhn algorithm, a
simple checksum formula used to validate a variety of identification numbers. The program
accepts user input for credit card numbers, checks for valid formats, and applies the Luhn
algorithm to determine validity. Additionally, it provides user-friendly output indicating
whether the card number is valid or invalid. The application aims to enhance security and
reduce fraudulent transactions by ensuring that only legitimate credit card numbers are
processed. This tool can serve both educational purposes and practical applications in
financial software systems.

7
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CONTENT

SR.NO. CHAPTERS

1 introduction

2 Objectives

3 algorithm

4 code

5 output

6 Future scope

7 conclusion

8 reference

8
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 1. INTRODUCTION

In the digital age, online transactions have become an integral part of modern commerce.
However, the rise of e-commerce has also led to an increase in credit card fraud and security
breaches. To combat this, the Credit Card Validator System is designed to provide a robust
and efficient solution for validating credit card information, ensuring secure and reliable
transactions. The widespread adoption of online payment systems has created a pressing
need for effective credit card validation. Manual validation methods are cumbersome, error-
prone, and vulnerable to exploitation. This project aims to develop an automated Credit Card
Validator System using Object-Oriented Programming (OOP) principles, providing a scalable
and secure solution for online merchants and financial institutions. As online transactions
continue to grow, the importance of credit card validation cannot be overstated. Incorrect or
fraudulent credit card information can result in significant financial losses and damage to
reputation. This project seeks to develop a comprehensive Credit Card Validator System,
leveraging OOP concepts to ensure accuracy, security, and efficiency in credit card
transactions.

The increasing prevalence of online transactions has created a pressing requirement for
effective credit card validation. This project aims to develop a cutting-edge Credit Card
Validator System, incorporating OOP concepts and industry-standard algorithms to ensure
the security, accuracy, and reliability of credit card transactions.

9
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 2. OBJECTIVES

Primary Objectives:

• Develop a secure and efficient credit card validation system.


• Implement industry-standard algorithms (Luhn, MOD10) for accurate card number
validation.
• Verify expiration dates and CVV codes to prevent fraudulent transactions.
• Support major credit card brands (Visa, Mastercard, Amex) and identify card types.
• Provide real-time feedback on card validity to enhance user experience.

Functional Objectives:
• Validate credit card numbers, expiration dates, and CVV codes.
• Identify and handle errors in user input.
• Support multiple card formats (e.g., 16-digit, 15-digit).
• Provide clear and concise error messages.
• Integrate with existing payment systems and gateways.

Security Objectives:
• Prevent unauthorized access to sensitive credit card information.
• Protect against common web vulnerabilities (SQL injection, cross-site scripting).
• Ensure PCI-DSS (Payment Card Industry Data Security Standard) compliance.
• Detect and prevent potential fraud attempts.

10
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 3. ALGORITHM

1: - Input:
➢ Credit card number (CCN)
➢ Expiration date (MM/YY)
➢ CVV code

2. Validation Steps:
➢ Card Number Validation:

1. Convert CCN to an array of integers.

2. Reverse the array.

3. Double every second digit.

4. If doubled digit > 9, subtract 9.

5. Sum all digits.

6. If sum % 10 == 0, CCN is valid.

➢ Expiration Date Validation:

1. Check if expiration date is in the future.

2. Verify date format (MM/YY).

➢ CVV Code Validation:

1. Check CVV length (3 or 4 digits).

2. Verify CVV format (numeric).

➢ Card Brand Identification:

1. Check CCN prefix for supported brands (e.g., Visa, Mastercard, Amex).

Validation Results

1. Return true if CCN, expiration date, and CVV are valid.

2. Return false otherwise.

11
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 4. CODE

#include <iostream>

#include <string>

using namespace std ;

// Base class: Card

class Card {

protected:

string card Number.

string expiration Date.

string cvv.

public:

Card (string card Number, string expiration Date, string cvv) {

this->card Number = card Number;

this->expiration Date = expiration Date;

this->cvv = cvv;

virtual void display Details () = 0; // Pure virtual function

};

// Derived class: Credit Card (inherits from Card)

class Credit Card: public Card {

12
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

private:

string card Brand;

public:

Credit Card (string card Number, string expiration Date, string cvv, string card Brand)

: Card (card Number, expiration Date, cvv) {

this->card Brand = card Brand;

void display Details () {

cout << "Card Brand: " << card Brand << endl;

cout << "Card Number: " << card Number << endl;

cout << "Expiration Date: " << expiration Date << endl;

cout << "CVV: " << cvv << endl;

bool validateCardNumber () {

// Luhn algorithm implementation

int sum = 0;

for (int i = 0; i < cardNumber.length(); i++) {

int digit = card Number[i] - '0';

if (i % 2 == 0) {

digit *= 2;

if (digit > 9) {

digit -= 9;

13
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

sum += digit;

return (sum % 10 == 0);

bool validateExpirationDate () {

// Simple validation (YYYY-MM format)

if (expirationDate.length()!= 7) {

return false;

int year = stoi (expirationDate.substr(0, 4));

int month = stoi (expirationDate.substr(5, 2));

return (year > 2022 && month >= 1 && month <= 12);

bool validatevcc () {

// Simple validation (3-digit CVV)

return (cvv. length () == 3);

};

// Polymorphic function to validate credit card

bool validateCreditCard (credit Card& card) {

return card. validateCardNumber () && card. validateExpirationDate () && card.


validateCVV ();

14
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

int main () {

string card Number, expiration Date, cvv, card Brand;

cout << "Enter Card Number: ";

cin >> card Number;

cout << "Enter Expiration Date (YYYY-MM): ";

cin >> expiration Date;

cout << "Enter CVV: ";

cin >> cvv;

cout << "Enter Card Brand (Visa/Mastercard/Amex): ";

cin >> card Brand;

credit Card credit Card(card Number, expiration Date, cvv, card Brand);

cout << "\nCredit Card Details:" << endl;

creditCard.displayDetails();

if (validateCreditCard (credit Card)) {

cout << "\nCredit Card is valid." << endl;

} else {

cout << "\nCredit Card is invalid." << endl;

return 0;

15
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 5. OUTPUT

1.VALID OUTOUT :-

2. INVALID OUTPUT :-

16
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 6. FUTURE SCOPE

Technical Enhancements: -

1. Integration with AI-powered fraud detection systems.

2. Implementation of machine learning algorithms for improved validation accuracy.

3. Support for additional credit card brands and formats.

4. Development of mobile and web applications for validator deployment.

5. Integration with popular e-commerce platforms.

Security Enhancements: -

1. Implementation of advanced encryption methods (e.g., AES-256).

2. Integration with secure payment gateways (e.g., Stripe, PayPal).

3. Support for 3D Secure authentication.

4. Regular security audits and penetration testing.

5. Compliance with emerging security standards (e.g., PSD2, GDPR).

Functional Enhancements: -

1. Validation of additional card information (e.g., address, phone number).

2. Support for recurring payments and subscription-based services.

3. Integration with customer relationship management (CRM) systems.

4. Development of a dashboard for analytics and reporting.

5. Support for multiple languages and locales.

17
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 7. CONCLUSION

The Credit Card Validator project successfully demonstrates the implementation of a


robust and efficient credit card validation system using Object-Oriented Programming
(OOP) principles. The system validates credit card numbers, expiration dates, and CVV
codes, ensuring secure and reliable transactions. To conclude a C++ credit card validator,
you can summarize its key features: it checks the card number format, validates using the
Luhn algorithm, and verifies the card's length and prefix rules based on common card
issuers. The program enhances user input handling and provides clear output for valid or
invalid cards. Overall, it demonstrates effective use of control structures, loops, and
functions in C++.

18
DR. PANJABRAO DESHMUKH GIRLS POLYTECNIC AMT

CHAPTER 8. REFERENCE

Links :-
➢ https://en.cppreference.com/w/
➢ https://www.tutorialspoint.com/oops_concepts.htm
➢ https://stripe.com/docs/api#card_validation

books :-
➢ "The C++ Programming Language" by Bjarne Stroustrup
➢ "C++ Primer" by Stanley B. Lippman
➢ "Effective C++" by Scott Meyers

19

You might also like