payment: first pass at using automata for auth/capture

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