public function PayPalPaymentsStandard::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/ PayPalPaymentsStandard.php, line 169
Class
- PayPalPaymentsStandard
- Defines the PayPal Payments Standard payment method.
Namespace
Drupal\uc_paypal\Plugin\Ubercart\PaymentMethodCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['wps_email'] = trim($form_state
->getValue('wps_email'));
$this->configuration['wps_language'] = $form_state
->getValue('wps_language');
$this->configuration['wps_server'] = $form_state
->getValue('wps_server');
$this->configuration['wps_submit_method'] = $form_state
->getValue('wps_submit_method');
$this->configuration['wps_no_shipping'] = $form_state
->getValue('wps_no_shipping');
$this->configuration['wps_address_override'] = $form_state
->getValue('wps_address_override');
$this->configuration['wps_address_selection'] = $form_state
->getValue('wps_address_selection');
$this->configuration['wps_debug_ipn'] = $form_state
->getValue('wps_debug_ipn');
}