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
Issue fork stripe_webform-3209808
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
Comment #3
phjouMerge 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...
Comment #5
hanoiiThanks! Will now release a new beta with this.
Comment #6
phjouAnd I confirm that the option to prevent multiple submissions is working for me now :)
Thank you.