-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayment.cpp
More file actions
19 lines (15 loc) · 832 Bytes
/
Payment.cpp
File metadata and controls
19 lines (15 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "Payment.hpp"
#include <iostream>
using namespace std;
void CreditCardPayment::processPayment(int orderID, double amount) {
cout << "[Credit Card Payment Processed] Order ID: " << orderID << " | Amount: $" << amount << " | Status: Processed with Credit Card" << endl;
}
void CreditCardPayment::refundPayment(int paymentID) {
cout << "[Credit Card Payment Refunded] Payment ID: " << paymentID << " | Status: Refunded to Credit Card" << endl;
}
void CashPayment::processPayment(int orderID, double amount) {
cout << "[Cash Payment Processed] Order ID: " << orderID << " | Amount: $" << amount << " | Status: Paid in Cash" << endl;
}
void CashPayment::refundPayment(int paymentID) {
cout << "[Cash Payment Refunded] Payment ID: " << paymentID << " | Status: Refunded in Cash" << endl;
}