[payment-factory] use composition instead of inheritance, inject core payment factory.
[payment-factory] add createConfig method.
php cs fixes
fix tests
add tests