You are here

public function PayPalExpressCheckout::submitConfigurationForm in Ubercart 8.4

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides PayPalPaymentMethodPluginBase::submitConfigurationForm

File

payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalExpressCheckout.php, line 105

Class

PayPalExpressCheckout
Defines the PayPal Express Checkout payment method.

Namespace

Drupal\uc_paypal\Plugin\Ubercart\PaymentMethod

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['ec_landingpage_style'] = $form_state
    ->getValue('ec_landingpage_style');
  $this->configuration['ec_rqconfirmed_addr'] = $form_state
    ->getValue('ec_rqconfirmed_addr');
  $this->configuration['ec_review_shipping'] = $form_state
    ->getValue('ec_review_shipping');
  $this->configuration['ec_review_company'] = $form_state
    ->getValue('ec_review_company');
  $this->configuration['ec_review_phone'] = $form_state
    ->getValue('ec_review_phone');
  $this->configuration['ec_review_comment'] = $form_state
    ->getValue('ec_review_comment');
  $this->configuration['wpp_cc_txn_type'] = $form_state
    ->getValue('wpp_cc_txn_type');
  parent::submitConfigurationForm($form, $form_state);
}