Refactored the code.

Moved the Payment Type constants to IPN class.