diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2021-03-29 15:10:13 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2021-03-31 09:24:30 +0000 |
| commit | 4e5a355f7c2978a6f705e6ca36abdfc51636acfc (patch) | |
| tree | a3a9c315338d295856a9b45ca0a43f7552b6bb04 /doc | |
| parent | 0d15ee3c9c5ebf98d604c331b8c97d01ced58f49 (diff) | |
[FIX] payment{,_stripe},sale: special character in reference
Special character in reference (eg. '#' character in invoice sequence)
might cause error for payment acquirer.
For example with stripe we get the error on:
{'error': {'code': 'url_invalid',
'doc_url': 'https://stripe.com/docs/error-codes/url-invalid',
'message': 'Not a valid URL', 'param': 'success_url',
'type': 'invalid_request_error'}}
Or an error because prepare_tx_url is broken.
With this changeset, when a payment reference is used inside an url, we
quote it.
opw-2479658
note: also uses url_quote_plus in payment.link.wizard()._generate_link
since this is what is expected by werkzeug (previously + characters
became spaces).
closes odoo/odoo#68577
X-original-commit: 47645c2f170d5a7c09ae80d4e0de6c3a821f7b36
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
