/**
  * @return JsonResponse
  */
 public function getAllAction()
 {
     $normalizedFactories = [];
     foreach ($this->registry->getGatewayFactories() as $name => $factory) {
         $gatewayConfig = new GatewayConfig();
         $gatewayConfig->setFactoryName($name);
         $form = $this->formFactory->create('payum_gateway_config', $gatewayConfig, ['csrf_protection' => false, 'data_class' => GatewayConfig::class]);
         $normalizedFactories[$name]['config'] = $this->formToJsonConverter->convertMeta($form->get('config'));
     }
     $form = $this->formFactory->create('payum_gateway_config', null, ['csrf_protection' => false, 'data_class' => GatewayConfig::class]);
     return new JsonResponse(array('generic' => $this->formToJsonConverter->convertMeta($form), 'meta' => $normalizedFactories));
 }
 /**
  * @return JsonResponse
  */
 public function metaAction()
 {
     $form = $this->formFactory->create(CreatePaymentType::class);
     return new JsonResponse(array('meta' => $this->formToJsonConverter->convertMeta($form)));
 }
 /**
  * @param Request $request
  *
  * @return JsonResponse
  */
 public function metaAction(Request $request)
 {
     $form = $this->formFactory->create('create_payment');
     return new JsonResponse(array('meta' => $this->formToJsonConverter->convertMeta($form)));
 }