payment: fix bug in PaymentProcessor

Both inner functions were using the default 'input' as variable name,
which caused the bug.

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