Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf committed Apr 24, 2024
1 parent 4937204 commit 4fdde88
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion server/models/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
7 changes: 0 additions & 7 deletions server/paymentProviders/stripe/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
createRefundTransaction,
getHostFee,
getHostFeeSharePercent,
// getPlatformFee,
getPlatformTip,
isPlatformTipEligible,
} from '../../lib/payments';
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/test-helpers/fake-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4fdde88

Please sign in to comment.