diff --git a/src/pretix/plugins/paypal/payment.py b/src/pretix/plugins/paypal/payment.py index c81d6e334f..81aa7133b1 100644 --- a/src/pretix/plugins/paypal/payment.py +++ b/src/pretix/plugins/paypal/payment.py @@ -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'),