mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44: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.
|
# the postfix.
|
||||||
return '{code} {postfix}'.format(
|
return '{code} {postfix}'.format(
|
||||||
code=payment.order.code,
|
code=payment.order.code,
|
||||||
postfix=self.settings.postfix,
|
postfix=re.sub('[^a-zA-Z0-9 ]', '', str(self.settings.postfix)),
|
||||||
)[:length]
|
)[:length]
|
||||||
else:
|
else:
|
||||||
# If no custom postfix is set, we transmit the event slug and event name for backwards compatibility
|
# If no custom postfix is set, we transmit the event slug and event name for backwards compatibility
|
||||||
|
|||||||
Reference in New Issue
Block a user