Handled multiple payments and partial payments as well