add createConfig method.
fix tests
Merge pull request #20 from Payum/payment-factory

Payment factory