saga: ensure response.bank_data is JSON serializable (#48266)
This commit is contained in:
parent
0e4f6f248e
commit
eea999db67
|
@ -193,7 +193,7 @@ class Payment(PaymentCommon):
|
||||||
result=result,
|
result=result,
|
||||||
bank_status=bank_status,
|
bank_status=bank_status,
|
||||||
signed=True,
|
signed=True,
|
||||||
bank_data=response,
|
bank_data=dict(response),
|
||||||
order_id=idop,
|
order_id=idop,
|
||||||
transaction_id=idop,
|
transaction_id=idop,
|
||||||
test=False)
|
test=False)
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import zeep.transports
|
import zeep.transports
|
||||||
|
@ -92,4 +94,6 @@ def test_response(backend_factory):
|
||||||
'transaction_date': None,
|
'transaction_date': None,
|
||||||
'transaction_id': '28b52f40-1ace-11eb-8ce3-0213ad91a104',
|
'transaction_id': '28b52f40-1ace-11eb-8ce3-0213ad91a104',
|
||||||
}
|
}
|
||||||
|
# Check bank_data is JSON serializable
|
||||||
|
json.dumps(response.bank_data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue