Skip to content

Commit

Permalink
Stripe: Filter statement_descriptor postfix for unacceptable characters
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-coholic committed Jan 22, 2024
1 parent 4fb4982 commit cff9ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/plugins/stripe/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def statement_descriptor(self, payment, length=22):
# the postfix.
return '{code} {postfix}'.format(
code=payment.order.code,
postfix=self.settings.postfix,
postfix=re.sub('[^a-zA-Z0-9 ]', '', str(self.settings.postfix)),
)[:length]
else:
# If no custom postfix is set, we transmit the event slug and event name for backwards compatibility
Expand Down

0 comments on commit cff9ae6

Please sign in to comment.