From b8d9e6e295dedce5c36a0507247f76b8a2c580ba Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 15 Mar 2015 17:37:05 +0100 Subject: [PATCH] PayPal: Proper configuration --- src/pretix/plugins/paypal/payment.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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'),