Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf committed Apr 24, 2024
1 parent 67a3a33 commit 4937204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions server/paymentProviders/stripe/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ export const refundTransaction = async (
{ stripeAccount: hostStripeAccount.username },
);

// if (options?.checkRefundStatus && refund.status !== 'succeeded') {
// await transaction.update({ data: { ...transaction.data, refund } });
// return null;
// }

const charge = await stripe.charges.retrieve(chargeId, { stripeAccount: hostStripeAccount.username });
const refundBalance = await stripe.balanceTransactions.retrieve(refund.balance_transaction as string, {
stripeAccount: hostStripeAccount.username,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect } from 'chai';
import gql from 'fake-tag';
import type Stripe from 'stripe';

import { PAYMENT_METHOD_SERVICE, PAYMENT_METHOD_TYPE } from '../../../../../server/constants/paymentMethods';
import { TransactionKind } from '../../../../../server/constants/transaction-kind';
Expand Down Expand Up @@ -134,7 +135,7 @@ describe('server/graphql/v2/collection/TransactionCollection', () => {
kind: TransactionKind.CONTRIBUTION,
amount: -15000,
PaymentMethodId: creditCardPm.id,
data: { charge: { id: 'ch_123' } },
data: { charge: { id: 'ch_123' } as Stripe.Charge },
OrderId: order.id,
}),
fakeTransaction({
Expand Down

0 comments on commit 4937204

Please sign in to comment.