Fixed param and payload methods to work with POST requests

Changed "final params" to just "params" inside the `payload` method, so it doesn't create a local variable called `params` instead of using the method variable of the same name.

I think this is the intention of the original code, because otherwise the member variable `params` serves no purpose.