public function EcReviewForm::submitForm in Ubercart 8.4
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- payment/
uc_paypal/ src/ Form/ EcReviewForm.php, line 94
Class
- EcReviewForm
- Returns the form for the custom Review Payment screen for Express Checkout.
Namespace
Drupal\uc_paypal\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->paymentMethodManager
->createFromOrder($this->order)
->submitExpressReviewForm($form, $form_state, $this->order);
$this->session
->set('uc_checkout_review_' . $this->order
->id(), TRUE);
$form_state
->setRedirect('uc_cart.checkout_review');
}