0001-lingo-update-default-TIPI-payment-service-URL-47537.patch
combo/apps/lingo/migrations/0028_tipipaymentformcell.py | ||
---|---|---|
41 | 41 |
( |
42 | 42 |
'url', |
43 | 43 |
models.URLField( |
44 |
default=b'https://www.tipi.budget.gouv.fr/tpa/paiement.web',
|
|
44 |
default=b'https://www.payfip.gouv.fr/tpa/paiement.web',
|
|
45 | 45 |
verbose_name='TIPI payment service URL', |
46 | 46 |
), |
47 | 47 |
), |
combo/apps/lingo/migrations/0037_regie_transaction_options.py | ||
---|---|---|
48 | 48 |
model_name='tipipaymentformcell', |
49 | 49 |
name='url', |
50 | 50 |
field=models.URLField( |
51 |
default='https://www.tipi.budget.gouv.fr/tpa/paiement.web',
|
|
51 |
default='https://www.payfip.gouv.fr/tpa/paiement.web',
|
|
52 | 52 |
verbose_name='TIPI payment service URL', |
53 | 53 |
), |
54 | 54 |
), |
combo/apps/lingo/models.py | ||
---|---|---|
1286 | 1286 |
class TipiPaymentFormCell(CellBase): |
1287 | 1287 |
title = models.CharField(_('Title'), max_length=150, blank=True) |
1288 | 1288 |
url = models.URLField( |
1289 |
_('TIPI payment service URL'), default='https://www.tipi.budget.gouv.fr/tpa/paiement.web'
|
|
1289 |
_('TIPI payment service URL'), default='https://www.payfip.gouv.fr/tpa/paiement.web'
|
|
1290 | 1290 |
) |
1291 | 1291 |
regies = models.CharField( |
1292 | 1292 |
_('Regies'), |
tests/test_lingo_cells.py | ||
---|---|---|
216 | 216 |
cell.order = 0 |
217 | 217 |
cell.save() |
218 | 218 |
assert cell.control_protocol == 'pesv2' |
219 |
assert cell.url == 'https://www.tipi.budget.gouv.fr/tpa/paiement.web'
|
|
219 |
assert cell.url == 'https://www.payfip.gouv.fr/tpa/paiement.web'
|
|
220 | 220 |
assert cell.template_name == 'lingo/tipi_form.html' |
221 | 221 |
html = cell.render({}) |
222 | 222 |
assert "<h2>TIPI Payment</h2>" in html |
223 |
- |