Made a small (important) fix. this hack however only solves the problem for now. I seem to have been to ambitious on the architecture side, so I will have to revisit some configuration stuff and handling of CashCow responses, still working on outlining the stuff in my head.
The problem is I let the same URI handle both nok and ok reponses and I can make this work, but it does show that the the current handling is quite fragile, so I would much have a stronger separation of the two to address this.
And I would like to talk to the CashCow people about sending the PBS response codes so I can give proper information to the user.
I expect to address the issue when I get some time.