Payment/PayPal: Restrict event payment settings

This commit is contained in:
Alejandro Avilés 2014-12-12 11:05:28 +01:00 committed by Adrian Moennich
parent 6da42773a5
commit 8cf628acb7
2 changed files with 6 additions and 6 deletions

View File

@ -27,15 +27,15 @@ from indico.util.i18n import _
class PluginSettingsForm(PaymentPluginSettingsFormBase):
url = URLField(_('PayPal URL'), [DataRequired()], description=_('URL of PayPal'))
business = StringField(_('Business'), [DataRequired()],
description=_('The PayPal ID or an email address associated with the PayPal account'))
url = URLField(_('API URL'), [DataRequired()], description=_('URL of the PayPal HTTP API.'))
business = StringField(_('Business'),
description=_('The default PayPal ID or email address associated with a PayPal account. '
'Event managers will be able to override this.'))
class EventSettingsForm(PaymentEventSettingsFormBase):
url = URLField(_('PayPal URL'), [DataRequired()], description=_('URL of PayPal'))
business = StringField(_('Business'), [DataRequired()],
description=_('The PayPal ID or an email address associated with the PayPal account'))
description=_('The PayPal ID or email address associated with a PayPal account.'))
class PaypalPaymentPlugin(PaymentPluginMixin, IndicoPlugin):

View File

@ -9,7 +9,7 @@ Clicking on the <strong>Pay now</strong> button you will get redirected to the P
<dd>{{ amount }} {{ currency }}</dd>
<dt></dt>
<dd>
<form action="{{ event_settings.url }}" method="POST" id="paypal">
<form action="{{ settings.url }}" method="POST" id="paypal">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="{{ event_settings.business}}">
<input type="hidden" name="item_name" value="{{ registrant.getFamilyName() }}, {{ registrant.getFirstName() }}: registration for {{ event.getTitle() }}">