Skip to content

Commit

Permalink
Payment/Sixpay: Support longer account IDs (indico#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcaf authored Sep 24, 2024
1 parent c6f3a72 commit 0110446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions payment_sixpay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ they are automatically sent back to Indico.
### 3.3.1

- Update iso4217 dependency
- Support longer Saferpay account IDs

### 3.3

Expand Down
8 changes: 4 additions & 4 deletions payment_sixpay/indico_payment_sixpay/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ class PluginSettingsForm(PaymentPluginSettingsFormBase):
label=_('Account ID'),
validators=[
Optional(),
IndicoRegexp(r'^[0-9-]{0,15}$')
IndicoRegexp(r'^[0-9-]{0,16}$')
],
description=_(
'Default Saferpay account ID, such as "123456-12345678". '
'Default Saferpay account ID, such as "1234567-12345678". '
'Event managers will be able to override this.'
)
)
Expand Down Expand Up @@ -154,9 +154,9 @@ class EventSettingsForm(PaymentEventSettingsFormBase):
label=_('Account ID'),
validators=[
DataRequired(),
IndicoRegexp(r'^[0-9-]{0,15}$')
IndicoRegexp(r'^[0-9-]{0,16}$')
],
description=_('The Saferpay account ID, such as "123456-12345678".')
description=_('The Saferpay account ID, such as "1234567-12345678".')
)
order_description = StringField(
label=_('Order Description'),
Expand Down

0 comments on commit 0110446

Please sign in to comment.