0001-payfip_ws-make-PAYMENT_URL-overridable-43939.patch
eopayment/payfip_ws.py | ||
---|---|---|
40 | 40 | |
41 | 41 |
SERVICE_URL = 'https://www.tipi.budget.gouv.fr/tpa/services/securite' # noqa: E501 |
42 | 42 | |
43 |
PAYMENT_URL = 'https://www.tipi.budget.gouv.fr/tpa/paiementws.web?idop=%s'
|
|
43 |
PAYMENT_URL = 'https://www.tipi.budget.gouv.fr/tpa/paiementws.web' |
|
44 | 44 | |
45 | 45 | |
46 | 46 |
def clear_namespace(element): |
... | ... | |
155 | 155 |
'help_text': _(u'do not modify if you do not know'), |
156 | 156 |
'validation': lambda x: x.startswith('http'), |
157 | 157 |
}, |
158 |
{ |
|
159 |
'name': 'payment_url', |
|
160 |
'default': PAYMENT_URL, |
|
161 |
'caption': _(u'PayFiP payment URL'), |
|
162 |
'help_text': _(u'do not modify if you do not know'), |
|
163 |
'validation': lambda x: x.startswith('http'), |
|
164 |
}, |
|
158 | 165 |
{ |
159 | 166 |
'name': 'saisie', |
160 | 167 |
'caption': _('Payment type'), |
... | ... | |
220 | 227 |
url_notification=urlnotif, |
221 | 228 |
url_redirect=urlredirect) |
222 | 229 | |
223 |
return str(idop), URL, PAYMENT_URL % idop
|
|
230 |
return str(idop), URL, self.payment_url + '?idop=%s' % idop
|
|
224 | 231 | |
225 | 232 |
def response(self, query_string, **kwargs): |
226 | 233 |
fields = parse_qs(query_string, True) |
... | ... | |
324 | 331 |
objet=objet, url_notification=url_notification, |
325 | 332 |
url_redirect=url_redirect) |
326 | 333 |
print('idOp:', idop) |
327 |
print(PAYMENT_URL % idop) |
|
334 |
print(PAYMENT_URL + '?idop=%s' % idop)
|
|
328 | 335 | |
329 | 336 |
@main.command() |
330 | 337 |
@click.argument('idop', type=str) |
331 |
- |