/**
     * {@inheritDoc}
     */
    public function createConfig(array $config = array())
    {
        $config = ArrayObject::ensureArrayObject($config);
        $config->defaults(array(
            'payum.factory_name' => 'stripe_js',
            'payum.factory_title' => 'Stripe.Js',

            'payum.template.obtain_token' => '@PayumStripe/Action/obtain_js_token.html.twig',
        ));

        return parent::createConfig((array) $config);
    }
    /**
     * @test
     *
     * @expectedException \Payum\Core\Exception\LogicException
     * @expectedExceptionMessage The publishable_key, secret_key fields are required.
     */
    public function shouldThrowIfRequiredOptionsNotPassed()
    {
        $factory = new CheckoutPaymentFactory();

        $factory->create();
    }