Undefined array key "custom_label" in Drupal\commerce_stripe\Plugin\Commerce\PaymentGateway\StripePaymentElement->buildConfigurationForm()

Created on 24 April 2024, 2 months ago

When adding a payment gateway to a site, and selecting Stripe Payment Element we get "Oops, something went wrong. Check your browser's developer console for more details." due to the below warning being in the AJAX response:

Undefined array key "custom_label" in Drupal\commerce_stripe\Plugin\Commerce\PaymentGateway\StripePaymentElement->buildConfigurationForm() (line 283 of /var/core/www/modules/contrib/commerce_stripe/src/Plugin/Commerce/PaymentGateway/StripePaymentElement.php

Attaching a patch to fix...

๐Ÿ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom mjpa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024