Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 from tdubuffet/master
Browse files Browse the repository at this point in the history
Fix Hidden type form - SF3
  • Loading branch information
ruudk authored Apr 22, 2017
2 parents 90e41ff + 0851740 commit aecf64e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Form/CheckoutType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
));
}
Expand Down

0 comments on commit aecf64e

Please sign in to comment.