feat: added payment gateway system #42
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Payment Gateway System
Overview
This pull request introduces the implementation for the Payment Gateway System . The solution demonstrates the application of design principles to enable extensibility and abstraction for integrating multiple payment gateways in a software system.
Key Features
Defines a standard contract for all payment gateway integrations (e.g., process payment, refund, etc.).
Adds support for at least two real or sample gateways (e.g., PayPal, Stripe, Razorpay, etc.), each implementing the abstract interface.
Demonstrates usage of these gateways in a way such that switching between gateways is easy and requires minimal code changes.
Includes main/test classes with sample transactions to show correct integration and OCP compliance (Open/Closed Principle).
Design Principles Illustrated
Review & Testing
Closses #37