payment: implement search APIs for payments

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