Showing the icons of supported credit cards is good for checkout UX. So let's ship some in Commerce.
Attaching Amazon example (notice the card type autodetection, also using the icons).

We need to make sure they are in the right format (SVG?) and license (GPL, MIT or public domain)

List of payment icons we want to support for the beta release:

  • Visa
  • MasterCard
  • American Express
  • PayPal
  • Diners Club
  • Discover
  • JCB
  • UnionPay
  • Maestro

Comments

bojanz created an issue. See original summary.

joshmiller’s picture

joshmiller’s picture

Issue summary: View changes
jjpoole’s picture

Status: Active » Needs review
StatusFileSize
new113.03 KB

Here's a proof of a collection of SVG icon's I've sourced. I did not create these, links below to review the licensing. If you prefer a flat/monochromatic (no colour) version we can do that too. If it looks good let me know and I'll post the SVG files.

https://github.com/muffinresearch/payment-icons
https://commons.wikimedia.org/wiki/File:UnionPay_logo.svg

bojanz’s picture

https://github.com/muffinresearch/payment-icons is MPL licensed, which is GPL incompatible. We can't use it (must be GPL, MIT, or public domain).

The icons look good, that's the style we want in general.

jjpoole’s picture

Status: Needs review » Active

Ok, I'll dig into the licensing issue and see what I can find.

jjpoole’s picture

Ok, I've sourced a webfont and extracted SVGs from it. This is the license, I assume it will work?

http://creativecommons.org/publicdomain/zero/1.0/

They are single colour logos right now, I'm going to make them into more of a card icon. Is there a particular width/height you'd like them by default, they are SVG so can be resized without any quality issues of course.

jjpoole’s picture

Status: Active » Needs review
StatusFileSize
new32.26 KB

Here's a new proof. I spent time optimizing and colouring them. Let me know what ya think.

smccabe’s picture

License is good, icons don't look as nice as the previous ones though, will the American Express one scale down nicely and still be identifiable, like on a phone for something?

jjpoole’s picture

I feel that the white card background makes the set more consistent and neutral, meaning it will work well in various themes. This Amex icon is more accurate in terms of the proper logo.

smccabe’s picture

Aight, seems good to me then.

agoradesign’s picture

License is one thing, but did you ask for permission to use the brand marks in your font as well?

jjpoole’s picture

To my knowledge no one has reached out to these companies, to be honest I doubt it would be a fruitful effort. In most cases like this it is common to provide a disclaimer, something like:
"All trademarks are the property of their respective owners; third-party brands, product names, trade names, corporate names and companies mentioned herein may be the trademarks of their respective owners or registered trademarks of other companies and have been used for purposes of explanation and to the owner's benefit, without implying a violation of copyright law."

jjpoole’s picture

StatusFileSize
new16.47 KB

Here's a package with the SVGs you can checkout.

mglaman’s picture

Did anyone visit the vendors and check out their branding pages? MasterCard, for instance, provides this: https://www.mastercardbrandcenter.com/us/getourbrand/index.shtml?pageId=.... It also details how to use their Acceptance Marks.

I do like the icons from #14, though.

mglaman’s picture

If we commit this, we should probably remove PayPal and let Commerce PayPal provide that. I looked at the acceptance mark pages for most of those merchants and they seem to fall in line. However, PayPals does not. See provided PayPal marks: https://www.paypal.com/us/webapps/mpp/logo-center

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

I think we're good with #14, sans PayPal. It's difficult to get resources from the vendors. And any other available SVGs from other platforms that I could track down were made by a designer in Sketch it seems.

bojanz’s picture

StatusFileSize
new15.12 KB

Took the icons from jjpoole, and CSS from mglaman, smashed it together, and it was good.

Only used on the payment method listing (user pages) for now, checkout to follow.

  • bojanz committed 544f295 on 8.x-2.x authored by jjpoole
    Issue #2745149 by jjpoole, bojanz, mglaman, joshmiller, smccabe,...
bojanz’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.