Use payment gateway display label instead of payment method label

Created on 8 February 2024, 10 months ago

Maybe that I miss something but I don't understand why we use the payment method label as payment option label for stored payment methods, while we use payment gateway display label for the rest of the options.

The specific line is line 65 in PaymentOptionsBuilder in commerce payment module :
'label' => $payment_method->label(),

I thought https://www.drupal.org/project/commerce/issues/3250069 📌 List offsite payment gateways that support stored payment methods directly, not grouped by payment type Needs review talks about this but the patch does not seem to fix the problem.
It is a problem for me because I use Commerce Paypal but I do not want to display only Paypal as option but the display name I configured.

Is there any reason to not use the payment gateway display label here ?

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Payment

Created by

🇫🇷France solene_ggd

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

Comments & Activities

Production build 0.71.5 2024