forked from CGM_Public/pretix_original
PayPal: Proper configuration
This commit is contained in:
@@ -23,17 +23,21 @@ class Paypal(BasePaymentProvider):
|
|||||||
identifier = 'paypal'
|
identifier = 'paypal'
|
||||||
verbose_name = _('PayPal')
|
verbose_name = _('PayPal')
|
||||||
settings_form_fields = OrderedDict([
|
settings_form_fields = OrderedDict([
|
||||||
|
('endpoint',
|
||||||
|
forms.ChoiceField(
|
||||||
|
label=_('Endpoint'),
|
||||||
|
initial='live',
|
||||||
|
choices=(
|
||||||
|
('live', 'Live'),
|
||||||
|
('sandbox', 'Sandbox'),
|
||||||
|
),
|
||||||
|
required=False
|
||||||
|
)),
|
||||||
('client_id',
|
('client_id',
|
||||||
forms.CharField(
|
forms.CharField(
|
||||||
label=_('Client ID'),
|
label=_('Client ID'),
|
||||||
required=False
|
required=False
|
||||||
)),
|
)),
|
||||||
('endpoint',
|
|
||||||
forms.CharField(
|
|
||||||
label=_('Endpoint'),
|
|
||||||
initial='api.paypal.com',
|
|
||||||
required=False
|
|
||||||
)),
|
|
||||||
('secret',
|
('secret',
|
||||||
forms.CharField(
|
forms.CharField(
|
||||||
label=_('Secret'),
|
label=_('Secret'),
|
||||||
|
|||||||
Reference in New Issue
Block a user