mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
PayPal: Proper configuration
This commit is contained in:
@@ -23,17 +23,21 @@ class Paypal(BasePaymentProvider):
|
||||
identifier = 'paypal'
|
||||
verbose_name = _('PayPal')
|
||||
settings_form_fields = OrderedDict([
|
||||
('endpoint',
|
||||
forms.ChoiceField(
|
||||
label=_('Endpoint'),
|
||||
initial='live',
|
||||
choices=(
|
||||
('live', 'Live'),
|
||||
('sandbox', 'Sandbox'),
|
||||
),
|
||||
required=False
|
||||
)),
|
||||
('client_id',
|
||||
forms.CharField(
|
||||
label=_('Client ID'),
|
||||
required=False
|
||||
)),
|
||||
('endpoint',
|
||||
forms.CharField(
|
||||
label=_('Endpoint'),
|
||||
initial='api.paypal.com',
|
||||
required=False
|
||||
)),
|
||||
('secret',
|
||||
forms.CharField(
|
||||
label=_('Secret'),
|
||||
|
||||
Reference in New Issue
Block a user