Validate Invoice and register payment

Validate Invoice and register payment