Undefined array key "custom_label" when adding a new Stripe Payment Element payment gateway

Created on 24 April 2024, 8 months ago
Updated 20 July 2024, 5 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

Fixed

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.71.5 2024