[FIX] Fixed typo and made minor edits
[TEST] Added tests for getPayment