Skip to content

Commit

Permalink
server: Add warn logging on numerous refund attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed Jan 23, 2025
1 parent 712b62d commit 8ac9ab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/polar/refund/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ async def create(
)
except stripe_lib.InvalidRequestError as e:
if e.code == "charge_already_refunded":
log.warn("refund.attempted_already_refunded", order_id=order.id)
raise RefundedAlready(order)
else:
raise e
Expand Down

0 comments on commit 8ac9ab2

Please sign in to comment.