mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Stripe connect: Allow to set application fee
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from django import forms
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from pretix.base.forms import SettingsForm
|
||||
|
||||
|
||||
class StripeKeyValidator:
|
||||
def __init__(self, prefix):
|
||||
@@ -21,3 +23,18 @@ class StripeKeyValidator:
|
||||
'prefix': self._prefixes[0],
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
class OrganizerStripeSettingsForm(SettingsForm):
|
||||
payment_stripe_connect_app_fee_percent = forms.DecimalField(
|
||||
label=_('Stripe Connect: App fee (percent)'),
|
||||
required=False,
|
||||
)
|
||||
payment_stripe_connect_app_fee_max = forms.DecimalField(
|
||||
label=_('Stripe Connect: App fee (max)'),
|
||||
required=False,
|
||||
)
|
||||
payment_stripe_connect_app_fee_min = forms.DecimalField(
|
||||
label=_('Stripe Connect: App fee (min)'),
|
||||
required=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user