Skip to content

Commit

Permalink
server/transaction: fix Stripe processor fee type that has changed
Browse files Browse the repository at this point in the history
Fix #3663
  • Loading branch information
frankie567 committed Jul 16, 2024
1 parent 240e1d7 commit b3fd2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/polar/transaction/service/processor_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _get_stripe_processor_fee_type(description: str) -> ProcessorFeeType:
return ProcessorFeeType.cross_border_transfer
if "active account" in description:
return ProcessorFeeType.account
if "subscriptions" in description:
if "billing" in description:
return ProcessorFeeType.subscription
if "automatic tax" in description:
return ProcessorFeeType.tax
Expand Down
2 changes: 1 addition & 1 deletion server/tests/transaction/service/test_processor_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ async def test_sync_stripe_fees(
"id": "STRIPE_BALANCE_TRANSACTION_ID_5",
"net": -500,
"currency": "usd",
"description": "Billing (2024-01-03): Subscriptions",
"description": "Billing - Usage Fee (2024-07-11)",
},
None,
),
Expand Down

0 comments on commit b3fd2cb

Please sign in to comment.