Commit 1935d9e6 authored by Ariel Barreiro's avatar Ariel Barreiro
Browse files

Issue #3212743 by gresko8, hanoii: Code to set stripe element on stripe...

Issue #3212743 by gresko8, hanoii: Code to set stripe element on stripe handler is missing from branch 2.x
parent 0f2e47c1
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -191,12 +191,6 @@ class StripeWebformHandler extends WebformHandlerBase {
    // Replace tokens.
    $data = $this->tokenManager->replace($this->configuration, $webform_submission);

    $webform = $webform_submission->getWebform();
    $element = $webform->getElement($data['stripe_element']);
    $element_manager = \Drupal::service('plugin.manager.webform.element');
    $element_plugin = $element_manager->getElementInstance($element, $webform_submission);
    $element_plugin->prepare($element, $webform_submission);

    try {
      $stripe = new \Stripe\StripeClient($apikeySecret);