rework same previous logic but with payum

@jcroll please note I did not test the code so consider it as a concept (maybe buggy). This same logic as it was before but using payum. Of course lots of things has to be polished and cleaned up.