#25: Add payment requirement option to membership type
Refactoring post payment method on memberships

The code was a little difficult to read so I broke it up to more readable pieces.

This code decides whether a membership can be approved after coming back from the payment gateway.