We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d38155 commit 129e1eaCopy full SHA for 129e1ea
src/api/withdrawal/withdrawal.service.ts
@@ -258,8 +258,7 @@ export class WithdrawalService {
258
trolleyRecipientPayoutDetails.payoutMethod === 'paypal' &&
259
ENV_CONFIG.TROLLEY_PAYPAL_FEE_PERCENT
260
) {
261
- const feePercent =
262
- 1 - 1 / (1 + Number(ENV_CONFIG.TROLLEY_PAYPAL_FEE_PERCENT) / 100);
+ const feePercent = Number(ENV_CONFIG.TROLLEY_PAYPAL_FEE_PERCENT) / 100;
263
feeAmount = Math.max(
264
ENV_CONFIG.TROLLEY_PAYPAL_FEE_MAX_AMOUNT,
265
feePercent * paymentAmount,
0 commit comments