mirror of
https://github.com/pretix/pretix.git
synced 2026-05-13 16:33:59 +00:00
Stripe: Allow destination charges
This commit is contained in:
@@ -290,6 +290,14 @@ class StripeSettingsHolder(BasePaymentProvider):
|
||||
)),
|
||||
] + list(super().settings_form_fields.items()) + moto_settings
|
||||
)
|
||||
if not self.settings.connect_client_id or self.settings.secret_key:
|
||||
d['connect_destination'] = forms.CharField(
|
||||
label=_('Destination'),
|
||||
validators=(
|
||||
StripeKeyValidator(['acct_']),
|
||||
),
|
||||
required=False
|
||||
)
|
||||
d.move_to_end('_enabled', last=False)
|
||||
return d
|
||||
|
||||
|
||||
Reference in New Issue
Block a user