Added isAllowRefund to move the check from the controller to the model for reuse
When refunding, the transaction created has a null payment object
Merge pull request #1 from immersivelabs/feature/modify-refund

[RFC] Modification for credit