About the Credit Card outline icon
The Credit Card icon is an outline (line) icon drawn with strokes, so colour and stroke width are easy to restyle from Iconoir (simple, elegant line icons). It is filed under the Games category. It inherits the surrounding text colour through currentColor, so you can recolour it with plain CSS.
Search keywords: credit card
Use it inline in HTML, as an image, in React or Vue components, in Figma or in any design tool that accepts SVG. Licence: MIT (Iconoir) – check the licence terms before redistributing.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 9V17C22 18.1046 21.1046 19 20 19H4C2.89543 19 2 18.1046 2 17V7C2 5.89543 2.89543 5 4 5H20C21.1046 5 22 5.89543 22 7V9ZM22 9H6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>