You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cancel Payment in Testmode Throws Runtime Error #390
When trying to delete a payment and passing through the testmode param, the client throws the following error:
File "/usr/local/lib/python3.12/site-packages/mollie/api/client.py", line 204, in _get_testmode
data["testmode"] = params.get("testmode") or True
~~~~^^^^^^^^^^^^
TypeError: 'NoneType' object does not support item assignment
Note this was for a pointofsale payment, where isCancellable = false, however this should throw a 422 error instead.
Activity
geertjanvdenbosch commentedon Dec 3, 2025
Hi @jwarne-mollie ,
What version of the client are you using?
jwarne-mollie commentedon Dec 8, 2025
Hey @geertjanvdenbosch, this was with v3.8, but I just checked the changelog for v3.9.1 it seems this was already fixed!