PaymentMethodAddForm should not assume payment_details array key will be present

Created on 22 August 2019, over 5 years ago
Updated 31 October 2024, about 1 month ago

If using a custom payment method, there payment_details form state values may not exist.

    try {
      $payment_gateway_plugin->createPaymentMethod($payment_method, $values['payment_details']);
    }

We shouldn't assume these are available. Ideally we would just do `$values['payment_details'] ?? []` but we have to support PHP5 unfortunately.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Payment

Created by

🇺🇸United States mglaman WI, USA

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024