payment: second pass at using automata for direct payments

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>