mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Stripe: Filter statement_descriptor postfix for unacceptable characters
This commit is contained in:
@@ -556,7 +556,7 @@ class StripeMethod(BasePaymentProvider):
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user