Giter Club home page Giter Club logo

payment-icons's Introduction

payment-icons

Payment Provider Icons with almost kinda font-awesome-style markup. Demo: https://jaspervandermeer.com/payment-icons/

Demo

TODO
Make it responsive
Make icons stack or display inline(-block)
Optimize the SVG
Add multiple icon sizes with an extra css class

Description

This provides an easy way to include payment provider icons in your website or app. It's always a hassle to get a list of supported payment providers so we usually resort to Google Images to steal somebody else's work - And I know you did that, just like I did.

Since stealing is wrong, I decided to stop stealing icons from Google Images and instead steal utilize somebody's creative work from Behance which in turn consists of artwork stolen from companies providing payment services with expensive lawyers and all that. So please, read the disclaimer below. It's all for a good cause: Getting more people to use your payment services.

Installation

Easy mode: Composer:

Install through composer: composer require tweemeterstudio/payment-icons

Check if this line exists in your composer.json file:

{
    "require": {
        "tweemeterstudio/payment-icons": "0.*"
    }
}

Also quite easy mode: Manual download:

Download the zip of this repo, extract its folder to your project.

Integration in your project

Include the following line in the <head> of your document:

<link href="/path/to/payment-icons/payment-icons.min.css">

You need to mind the /path/to/ part when including the payment-icons.min.css file. The css file and /assets folder should reside in the same directory!

Usage

To use the payment icons you can simply include

<ins class="pi-payment-icons">
    <i class="pi pi-paypal"></i>
    <i class="pi pi-mastercard"></i>
    <i class="pi pi-ideal"></i>
</ins>

to your page, where the classes of the <i> as children of the <ins> decide which payment provider icons are shown. The full list of available payment providers are mentioned below.

List of available payment providers and its corresponding CSS class

Payment Provider CSS Class
PayPal paypal
Apple Pay apple-pay
Google Pay google-pay
Alipay alipay
Mastercard mastercard
Visa visa
American Express american-express
Diner's Club diners-club
Maestro maestro
VPay vpay
Girocard girocard
Klarna klarna
Giropay giropay
iDeal ideal
Przelewy24 przelewy24
Bitcoin bitcoin
Etherereum ethereum
Ripple ripple

Disclaimer

All logos, designs, brands and names are ยฉ to their respective owners. Original icon design by Spektrum 44 on Behance.

Thank you ๐Ÿ’™

payment-icons's People

Stargazers

Roman avatar

Watchers

Jasper avatar

payment-icons's Issues

Add generic payment icons

Hello,

I just found this, thank you very much for setting it up, I hope it is still being maintained!

I am asking if you are willing to add some generic payment icons such as

  • Debit
  • Cash
  • Pay at delivery
  • Invoice
  • Bank Transfer

Have a great day

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.