jaxrs: bug fixes in PaymentGatewayResource

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
.gitignore: ignore test db in server

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