public function StripeGateway::submitConfigurationForm in Ubercart Stripe 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Ubercart/PaymentMethod/StripeGateway.php \Drupal\uc_stripe\Plugin\Ubercart\PaymentMethod\StripeGateway::submitConfigurationForm()
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 CreditCardPaymentMethodBase::submitConfigurationForm
File
- src/
Plugin/ Ubercart/ PaymentMethod/ StripeGateway.php, line 115
Class
- StripeGateway
- Stripe Ubercart gateway payment method.
Namespace
Drupal\uc_stripe\Plugin\Ubercart\PaymentMethodCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
foreach ([
'test_secret_key',
'test_publishable_key',
'live_secret_key',
'live_publishable_key',
'testmode',
] as $item) {
$this->configuration[$item] = $form_state
->getValue($item);
}
return parent::submitConfigurationForm($form, $form_state);
}