Problem/Motivation

This results in a fatal error when submitting a form with stripe handler.

Steps to reproduce

Define a webform with stripe card element and a stripe handler. Test the form.

Proposed resolution

Take the code from older branch.

CommentFileSizeAuthor
#2 3212743-2.patch1.58 KBgresko8

Comments

gresko8 created an issue. See original summary.

gresko8’s picture

Assigned: gresko8 » Unassigned
Status: Active » Needs review
StatusFileSize
new1.58 KB

Attaching a patch.

juliakoelsch’s picture

Hi, there is another issue here that this patch solves as well: https://www.drupal.org/project/stripe_webform/issues/3216724#comment-141...

This patch cleanly applies for me, and resolves the issue for me, as well as the reporter of the other issue.

hanoii’s picture

I think the code needs to be removed. Selecting the stripe element was removed as it's now find automatically, I will commit a different fix that adding a configuration that's not necessary.

hanoii’s picture

Status: Needs review » Needs work

  • hanoii committed 1935d9e on 2.x
    Issue #3212743 by gresko8, hanoii: Code to set stripe element on stripe...
hanoii’s picture

Status: Needs work » Fixed

I believe that with the latest fix this should be OK. please test dev version and let me know.

i-trokhanenko’s picture

It seems to work fine on the dev version. Thanks @hanoii

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.