mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 15:34:37 +00:00
Payment/PayPal: Restrict event payment settings
This commit is contained in:
parent
6da42773a5
commit
8cf628acb7
@ -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):
|
||||
|
||||
@ -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() }}">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user