lingo: update default TIPI payment service URL (#47537)
gitea-wip/combo/pipeline/head Build started... Details
gitea/combo/pipeline/head Build started... Details

This commit is contained in:
Thomas NOËL 2021-06-15 10:27:46 +02:00
parent 188be78eaf
commit b80ad98eb2
4 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ class Migration(migrations.Migration):
(
'url',
models.URLField(
default=b'https://www.tipi.budget.gouv.fr/tpa/paiement.web',
default=b'https://www.payfip.gouv.fr/tpa/paiement.web',
verbose_name='TIPI payment service URL',
),
),

View File

@ -48,7 +48,7 @@ class Migration(migrations.Migration):
model_name='tipipaymentformcell',
name='url',
field=models.URLField(
default='https://www.tipi.budget.gouv.fr/tpa/paiement.web',
default='https://www.payfip.gouv.fr/tpa/paiement.web',
verbose_name='TIPI payment service URL',
),
),

View File

@ -1286,7 +1286,7 @@ TIPI_CONTROL_PROCOTOLS = (
class TipiPaymentFormCell(CellBase):
title = models.CharField(_('Title'), max_length=150, blank=True)
url = models.URLField(
_('TIPI payment service URL'), default='https://www.tipi.budget.gouv.fr/tpa/paiement.web'
_('TIPI payment service URL'), default='https://www.payfip.gouv.fr/tpa/paiement.web'
)
regies = models.CharField(
_('Regies'),

View File

@ -216,7 +216,7 @@ def test_tipi_cell():
cell.order = 0
cell.save()
assert cell.control_protocol == 'pesv2'
assert cell.url == 'https://www.tipi.budget.gouv.fr/tpa/paiement.web'
assert cell.url == 'https://www.payfip.gouv.fr/tpa/paiement.web'
assert cell.template_name == 'lingo/tipi_form.html'
html = cell.render({})
assert "<h2>TIPI Payment</h2>" in html