diff --git a/src/Form/CheckoutType.php b/src/Form/CheckoutType.php index 48aebd6..3fdc9f1 100644 --- a/src/Form/CheckoutType.php +++ b/src/Form/CheckoutType.php @@ -3,12 +3,13 @@ namespace Ruudk\Payment\StripeBundle\Form; use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\Form\Extension\Core\Type\HiddenType; class CheckoutType extends StripeType { public function buildForm(FormBuilderInterface $builder, array $options) { - $builder->add('token', 'hidden', array( + $builder->add('token', HiddenType::class, array( 'required' => false )); }