[payment-factory] add createConfig method.