π³ Online GPay Payment Simulation System (Python, OOPs)
π Overview
The Online GPay Payment Simulation System is a console-based Python project that replicates core functionalities of Google Pay using Object-Oriented Programming (OOP) principles. It supports user and merchant registration, secure UPI PIN-based transactions, wallet balance management, and transaction history tracking.
π Features
User & Merchant Registration with unique phone numbers.
Secure Transactions with UPI PIN verification.
Wallet Management:
Add money
Deduct money
Check balance
Transaction History tracking for each user.
Encapsulation for UPI PIN security.
OOP Design:
Encapsulation (private data members)
Inheritance (Merchant inherits User)
Composition (User HAS-A Wallet)
Polymorphism for flexible transaction handling.
π Technologies Used Python 3.x
DateTime module (for transaction timestamps)
Object-Oriented Programming Concepts
π Project Structure
perl
Copy
Edit
gpay-system/
β
βββ gpay_system.py # Main script
βββ README.md # Project documentation
βοΈ How It Works
Register Users and Merchants.
Add Money to the wallet.
Send Money between users or to merchants.
Verify UPI PIN before processing the payment.
View Transaction History to see past transactions.
π₯ Sample Output
pgsql
Copy
Edit
User Diya Registered Successfully!
Merchant Rahul Registered Successfully!
βΉ5000 added to wallet. Current Balance: βΉ5000
Wallet Balance: βΉ5000
Wallet Balance: βΉ0
Transaction of βΉ1500 Successful from Diya to Rahul
---- Transaction History ----
2025-08-04 17:30:45.123456 | Diya sent βΉ1500 to Rahul
π Future Enhancements
Bank account linking for wallet recharge.
QR code-based payment system.
Interest on wallet balance.
Multi-factor authentication.
π©βπ» Author Diya Patel β GitHub Profile | LinkedIn
If you want, I can also make a professional GitHub repo for this with separate files (models.py, main.py) so it looks like a real-world structured project.