diff --git a/server/models/Transaction.ts b/server/models/Transaction.ts index 31b37fdb0c4..5bfda61d715 100644 --- a/server/models/Transaction.ts +++ b/server/models/Transaction.ts @@ -817,7 +817,6 @@ Transaction.createDoubleEntry = async (transaction: TransactionCreationAttribute // TODO: should we check for refunds also? transaction.netAmountInCollectiveCurrency = transaction.netAmountInCollectiveCurrency || transaction.amount; - // transaction.netAmountInCollectiveCurrency = Transaction.calculateNetAmountInCollectiveCurrency(transaction); transaction.TransactionGroup = transaction.TransactionGroup || uuid(); transaction.hostCurrencyFxRate = transaction.hostCurrencyFxRate || 1; diff --git a/server/paymentProviders/stripe/common.ts b/server/paymentProviders/stripe/common.ts index 73482dcdcb9..7c61fdd4bab 100644 --- a/server/paymentProviders/stripe/common.ts +++ b/server/paymentProviders/stripe/common.ts @@ -14,7 +14,6 @@ import { createRefundTransaction, getHostFee, getHostFeeSharePercent, - // getPlatformFee, getPlatformTip, isPlatformTipEligible, } from '../../lib/payments'; @@ -154,17 +153,11 @@ export const createChargeTransactions = async ( const platformTipEligible = await isPlatformTipEligible(order); const platformTip = getPlatformTip(order); - // const platformFee = await getPlatformFee(order); - let platformTipInHostCurrency, platformFeeInHostCurrency; if (platformTip) { platformTipInHostCurrency = isSharedRevenue ? Math.round(platformTip * hostCurrencyFxRate) || 0 : fees.applicationFee; - // } else if (platformFee) { - // platformFeeInHostCurrency = isSharedRevenue - // ? Math.round(platformFee * hostCurrencyFxRate) || 0 - // : fees.applicationFee; } else if (config.env === 'test' || config.env === 'ci') { // Retro Compatibility with some tests expecting Platform Fees, not for production anymore // TODO: we need to stop supporting this diff --git a/test/test-helpers/fake-data.ts b/test/test-helpers/fake-data.ts index 5e464d1ef6f..28ab8b5248e 100644 --- a/test/test-helpers/fake-data.ts +++ b/test/test-helpers/fake-data.ts @@ -825,7 +825,6 @@ export const fakeTransaction = async ( const amount = (transactionData.amount as number) || randAmount(10, 100) * 100; const CreatedByUserId = transactionData.CreatedByUserId || (await fakeUser()).id; const FromCollectiveId = transactionData.FromCollectiveId || (await fakeCollective()).id; - // const HostCollectiveId = transactionData.HostCollectiveId || (await fakeCollective()).id; const collective = transactionData.CollectiveId ? await models.Collective.findByPk(transactionData.CollectiveId) : await fakeCollective();