I'd prefer:

```diff
        $form = $this->createCreditCardForm();
-       $form->submit($this->httpRequest);
+       $form->handleRequest($this->httpRequest);
-       if ($form->isValid()) {
+       if ($form->isSubmited() && $form->isValid()) {
            $request->setCreditCard($form->getData());

            return;
        }
```