/**
  * @param Payment $payment
  * @param TokenInterface $token
  *
  * @return FormBuilderInterface
  */
 protected function createPaymentFormBuilder(Payment $payment, TokenInterface $token = null)
 {
     return $this->formFactory->createNamedBuilder('', 'form', $payment, ['method' => 'POST', 'action' => $token ? $token->getTargetUrl() : null, 'data_class' => Payment::class, 'csrf_protection' => false, 'attr' => ['class' => 'payum-obtain-missing-details'], 'allow_extra_fields' => true]);
 }