Problem/Motivation

It is impossible to submit the webforms anymore.
The code is now using an undefined variable in StripeWebformHandler line 220

      $stripe_customer_create = [
        'name' => $payment_method->billing_details->name,
        'email' => $payment_method->billing_details->email,
        'address' => $payment_method->billing_details->address->toArray(),
        'metadata' => $metadata,
      ];

In my IDE it is underlined in red because the variable $payment_method is never defined before which is crashing the webform.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

phjou created an issue. See original summary.

phjou’s picture

Status: Active » Needs review

Merge request done.

I just moved back the initialization before actually using that variable. The regression has been introduced by https://git.drupalcode.org/project/stripe_webform/-/commit/d7103d9741917...

  • phjou committed 0f2e47c on 2.x
    Issue #3209808: Submissions are broken
    
hanoii’s picture

Status: Needs review » Fixed

Thanks! Will now release a new beta with this.

phjou’s picture

And I confirm that the option to prevent multiple submissions is working for me now :)

Thank you.

Status: Fixed » Closed (fixed)

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