PayPal: Proper configuration

This commit is contained in:
Raphael Michel
2015-03-15 17:37:05 +01:00
parent 797c1f4205
commit b8d9e6e295

View File

@@ -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'),