src/Payum/Core/Bridge/Symfony/Form/Type/GatewayConfigType.php
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('gatewayName')
            ->add('factoryName', GatewayFactoriesChoiceType::class)
        ;

        $builder->addEventListener(FormEvents::PRE_SUBMIT, array($this, 'buildCredentials'));
        $builder->addEventListener(FormEvents::PRE_SET_DATA, array($this, 'buildCredentials'));
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('gatewayName')
            ->add('factoryName', GatewayFactoriesChoiceType::class)
        ;

        $builder->addEventListener(FormEvents::PRE_SUBMIT, array($this, 'buildCredentials'));
        $builder->addEventListener(FormEvents::PRE_SET_DATA, array($this, 'buildCredentials'));
    }
{@inheritDoc}