10% community upkeep fee with explanations throughout

This commit is contained in:
jackiettran
2025-11-07 15:51:32 -05:00
parent e20e33a0f6
commit de32b68ec4
8 changed files with 420 additions and 13 deletions

View File

@@ -362,7 +362,7 @@ class EmailService {
<p><strong>Transfer ID:</strong> {{stripeTransferId}}</p>
<h3>Earnings Breakdown</h3>
<p><strong>Rental Amount:</strong> \${{totalAmount}}</p>
<p><strong>Platform Fee (20%):</strong> -\${{platformFee}}</p>
<p><strong>Community Upkeep Fee (10%):</strong> -\${{platformFee}}</p>
<p style="font-size: 18px; color: #28a745;"><strong>Your Earnings:</strong> \${{payoutAmount}}</p>
<p>Funds are typically available in your bank account within 2-3 business days.</p>
<p><a href="{{earningsDashboardUrl}}" class="button">View Earnings Dashboard</a></p>
@@ -1468,7 +1468,7 @@ class EmailService {
<td>\$${totalAmount.toFixed(2)}</td>
</tr>
<tr>
<th>Platform Fee (20%)</th>
<th>Community Upkeep Fee (10%)</th>
<td>-\$${platformFee.toFixed(2)}</td>
</tr>
<tr>
@@ -1687,7 +1687,7 @@ class EmailService {
<td>\$${totalAmount.toFixed(2)}</td>
</tr>
<tr>
<th>Platform Fee (20%)</th>
<th>Community Upkeep Fee (10%)</th>
<td>-\$${platformFee.toFixed(2)}</td>
</tr>
<tr>

View File

@@ -372,7 +372,7 @@
<td class="breakdown-amount">${{totalAmount}}</td>
</tr>
<tr>
<td class="breakdown-label">Platform Fee (20%)</td>
<td class="breakdown-label">Community Upkeep Fee (10%)</td>
<td class="breakdown-amount">-${{platformFee}}</td>
</tr>
<tr class="breakdown-earnings">

View File

@@ -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)}`,
};