From de32b68ec4974f7c5d6c97b42b492a3d413cdb9e Mon Sep 17 00:00:00 2001 From: jackiettran <41605212+jackiettran@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:51:32 -0500 Subject: [PATCH] 10% community upkeep fee with explanations throughout --- backend/services/emailService.js | 6 +- .../emails/payoutReceivedToOwner.html | 2 +- backend/utils/feeCalculator.js | 4 +- frontend/src/App.tsx | 2 + frontend/src/components/Footer.tsx | 4 + frontend/src/components/PricingForm.tsx | 20 +- frontend/src/pages/EarningsDashboard.tsx | 11 +- frontend/src/pages/FAQ.tsx | 384 ++++++++++++++++++ 8 files changed, 420 insertions(+), 13 deletions(-) create mode 100644 frontend/src/pages/FAQ.tsx diff --git a/backend/services/emailService.js b/backend/services/emailService.js index 043806d..5934019 100644 --- a/backend/services/emailService.js +++ b/backend/services/emailService.js @@ -362,7 +362,7 @@ class EmailService {

Transfer ID: {{stripeTransferId}}

Earnings Breakdown

Rental Amount: \${{totalAmount}}

-

Platform Fee (20%): -\${{platformFee}}

+

Community Upkeep Fee (10%): -\${{platformFee}}

Your Earnings: \${{payoutAmount}}

Funds are typically available in your bank account within 2-3 business days.

View Earnings Dashboard

@@ -1468,7 +1468,7 @@ class EmailService { \$${totalAmount.toFixed(2)} - Platform Fee (20%) + Community Upkeep Fee (10%) -\$${platformFee.toFixed(2)} @@ -1687,7 +1687,7 @@ class EmailService { \$${totalAmount.toFixed(2)} - Platform Fee (20%) + Community Upkeep Fee (10%) -\$${platformFee.toFixed(2)} diff --git a/backend/templates/emails/payoutReceivedToOwner.html b/backend/templates/emails/payoutReceivedToOwner.html index 52e65fe..1373847 100644 --- a/backend/templates/emails/payoutReceivedToOwner.html +++ b/backend/templates/emails/payoutReceivedToOwner.html @@ -372,7 +372,7 @@ ${{totalAmount}} - Platform Fee (20%) + Community Upkeep Fee (10%) -${{platformFee}} diff --git a/backend/utils/feeCalculator.js b/backend/utils/feeCalculator.js index b638585..0eb41de 100644 --- a/backend/utils/feeCalculator.js +++ b/backend/utils/feeCalculator.js @@ -1,6 +1,6 @@ class FeeCalculator { static calculateRentalFees(totalAmount) { - const platformFeeRate = 0.2; + const platformFeeRate = 0.1; const platformFee = totalAmount * platformFeeRate; @@ -15,7 +15,7 @@ class FeeCalculator { static formatFeesForDisplay(fees) { return { totalAmount: `$${fees.totalAmount.toFixed(2)}`, - platformFee: `$${fees.platformFee.toFixed(2)} (20%)`, + platformFee: `$${fees.platformFee.toFixed(2)} (10%)`, totalCharge: `$${fees.totalChargedAmount.toFixed(2)}`, ownerPayout: `$${fees.payoutAmount.toFixed(2)}`, }; diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b04aab6..8a4caf2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -26,6 +26,7 @@ import ItemRequestDetail from './pages/ItemRequestDetail'; import CreateItemRequest from './pages/CreateItemRequest'; import MyRequests from './pages/MyRequests'; import EarningsDashboard from './pages/EarningsDashboard'; +import FAQ from './pages/FAQ'; import PrivateRoute from './components/PrivateRoute'; import axios from 'axios'; import './App.css'; @@ -182,6 +183,7 @@ const AppContent: React.FC = () => { } /> + } />