Skip to content

Feat: Implement Payment System with Interfaces and Default Methodsfeat(task1): add payment system implementation#1

Open
dariaradko5-dev wants to merge 1 commit into
mainfrom
feature/task1-payment-interfaces
Open

Feat: Implement Payment System with Interfaces and Default Methodsfeat(task1): add payment system implementation#1
dariaradko5-dev wants to merge 1 commit into
mainfrom
feature/task1-payment-interfaces

Conversation

@dariaradko5-dev

Copy link
Copy Markdown
Owner

The PaymentMethod interface has been created with the pay() and name() methods.
The default payWithFee() method has been added to process the fee without changing the implementation code.
The CardPayment and PayPalPayment classes have been implemented.
The PaymentProcessor class has been created to process transactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant