api: update state in get_payment_info and get_refund_info

We need to fetch the latest state, to update our
records (the status field will change).

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