Skip to content

Commit

Permalink
handle merchant_id for host fee share
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf committed Dec 9, 2024
1 parent 8fa855e commit 4f8c9fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/graphql/v2/interface/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { GraphQLTaxInfo } from '../object/TaxInfo';

import { GraphQLAccount } from './Account';

const { EXPENSE, PLATFORM_TIP } = TransactionKind;
const { EXPENSE, PLATFORM_TIP, HOST_FEE_SHARE } = TransactionKind;

/**
* @typedef {import("../../../models/PaymentMethod")} PaymentMethod
Expand Down Expand Up @@ -750,7 +750,7 @@ export const TransactionFields = () => {
}
return expense?.data?.transactionId;
} else if (
transaction.kind === PLATFORM_TIP &&
[PLATFORM_TIP, HOST_FEE_SHARE].includes(transaction.kind) &&
req.remoteUser.hasRole(allowedRoles, PlatformConstants.PlatformCollectiveId)
) {
// For Stripe platform tips collected directly, we have to get the merchant ID from the related contribution transaction
Expand Down

0 comments on commit 4f8c9fd

Please sign in to comment.