Fix the error in payment factory. + some minor impr.

yes, but I just want to stress on that, Because it is very important for redsys.