[payment-factory] add createConfig method.
php cs fixes
fix tests