payments provider fixed

@fzaninotto i've thought about what you wrote in my previous PR, so i've reworked it this way.