fix for issue #2 wrong parse of payment type