Display the PayPal logo next to the PayPal option in Checkout

Created on 14 March 2019, over 6 years ago
Updated 5 December 2024, 10 months ago

Most probably via a form_alter.

This task is about altering the option label shown on the PaymentInformation pane (See screenshot below).
it would be nice to show the PayPal logo next to the option.

📌 Task
Status

Active

Version

1.0

Component

PayPal Checkout

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
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.

  • 🇩🇪Germany Anybody Porta Westfalica

    I agree this is still an issue, as other payment methods, like Stripe show payment method buttons.

    The commerce_stripe module solves it by letting the user select the logo(s) to show. Would that also be an option here?

  • 🇩🇪Germany Anybody Porta Westfalica

    @jsacksick if you could give us a direction where to go here, we'd be happy to create a MR. Thanks! :)

  • 🇮🇱Israel jsacksick

    if you could give us a direction where to go here

    , I'm not really sure, the logic to actually replace the option by a logo would probably remain the same.

    I think we should simply make this configurable (either a setting to toggle the option replacement by a logo, or even a logo style setting, with a 'none' option.

  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks @jsacksick we'll plan that and I think we should then do it similar (or the same) how commerce stripe does it:

  • 🇩🇪Germany Anybody Porta Westfalica
  • First commit to issue fork.
  • 🇩🇪Germany Grevil

    @anybody the setting you describe for stripe is for the checkout display only, not the payment method selection pane.

    Stripe always shows the logos on the payment method selection pane (even if they would have access to the plugin's settings there).

    So I'd vote for a simple checkbox:
    TRUE => Show logo instead of string
    FALSE => Show string

  • 🇩🇪Germany Anybody Porta Westfalica

    Mhm I'd still vote to cover all potential cases, like in 11. It's not untypical to show both, the label and the Logo and furthermore a string-based setting is extensible in the future in contrast to a checkbox.

  • Pipeline finished with Success
    6 months ago
    Total: 141s
    #480327
  • 🇩🇪Germany Grevil

    Done, please review!

  • Pipeline finished with Canceled
    6 months ago
    #480384
  • 🇩🇪Germany Grevil

    Ok talked about this with @anybody internally. We feel like this would cover further use cases.

  • Pipeline finished with Success
    6 months ago
    Total: 339s
    #480391
  • Pipeline finished with Success
    6 months ago
    Total: 198s
    #480959
  • 🇩🇪Germany Grevil

    Ok, this should be it. Here are some screenshots:

    We also thought about an additional optional description field, which could be displayed right under the payment method. @jsacksick should we implement this here as well, or create a follow-up issue?

  • 🇮🇱Israel jsacksick

    Left a few comments. Also regarding the smart payment buttons style label change. I'm not against the change, but keep in mind the smart payment buttons are also displayed on the cart page. So maybe we should say in cart / checkout?

    Also why not adding a field to customize the description as well.

  • Pipeline finished with Success
    6 months ago
    Total: 150s
    #480988
  • Pipeline finished with Success
    6 months ago
    Total: 148s
    #480989
  • Pipeline finished with Success
    6 months ago
    Total: 176s
    #480998
  • Pipeline finished with Success
    6 months ago
    Total: 182s
    #481004
  • Pipeline finished with Success
    6 months ago
    Total: 156s
    #481013
  • Pipeline finished with Success
    6 months ago
    Total: 148s
    #481032
  • 🇩🇪Germany Grevil

    Ok, that should be it! Please review!

  • Pipeline finished with Success
    6 months ago
    Total: 276s
    #481040
  • Pipeline finished with Success
    6 months ago
    Total: 193s
    #481062
  • Pipeline finished with Canceled
    6 months ago
    Total: 76s
    #481071
  • Pipeline finished with Canceled
    6 months ago
    Total: 63s
    #481074
  • Pipeline finished with Success
    6 months ago
    Total: 168s
    #481077
  • 🇮🇱Israel jsacksick

    I'm testing the patch manually now and I'm wondering... Why do we need an extra label field when we already have a display label?
    There is a name, a display name, and now a label under "Payment method selection display".

  • Pipeline finished with Success
    6 months ago
    Total: 145s
    #481124
  • Pipeline finished with Success
    6 months ago
    Total: 175s
    #481142
  • 🇩🇪Germany Grevil

    @jsacksick yea I think, I wanted to explicitly override the label on the selection screen only. But that's not necessary, agreed. I removed it.

  • 🇮🇱Israel jsacksick

    Ok one last thing... And I think we should be good:

    Customize the display of the payment method selection page.

    Should we say the following instead?

    "Customize the display of the PayPal payment option at checkout."?

    or "Control how the PayPal payment method is displayed during checkout."

  • 🇮🇱Israel jsacksick

    Went with "Customize the display of the PayPal payment option at checkout.". If you're fine with that, I can merge the MR and tag a new release.

  • Pipeline finished with Skipped
    6 months ago
    #481194
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024