GithubHelp home page GithubHelp logo

harendranathvegi9 / payment_icons Goto Github PK

View Code? Open in Web Editor NEW

This project forked from captn3m0/payment_icons

0.0 2.0 0.0 92 KB

An easy to use library that allows you to manage and access payment icons

License: MIT License

Ruby 71.83% HTML 28.17%

payment_icons's Introduction

Payment Icons

Payment Icons is a simple Ruby on Rails engine extracted from Shopify. Shopify supports multiple payment methods through gems like Active Merchant and Offsite Payments. This has lead to an accumulation of icons for various payment methods. This gem provides easy access to those icons and helpful methods to integrate them into any Ruby on Rails app.

Usage

From Git

You can check out the latest source from git:

git clone https://github.com/activemerchant/payment_icons.git

From RubyGems

Installation from RubyGems: Run gem install payment_icons in your console.

If you'd like to add it to your existing Rails project, include gem 'payment_icons' in your Gemfile and run bundle install.

Once the gem is part of your Rails project, the PaymentIcon frozen record model will be available anywhere in your application. You also have access to all the icons with the path app/assets/images/payment_icons/<icon_name.svg>. For example:

<% PaymentIcon.credit_cards.each do |card| %>
  <div>
    <%= image_tag card.path %>
  </div>
<% end %>

Contributing

If you'd like to add a new payment method icon to this repository,

  1. [Fork it] (https://github.com/activemerchant/payment_icons/fork) and clone it.
  2. Create a branch (git checkout -b my_new_icon)
  3. Add your-icon.svg to the app/assets/images/payment_icons/ directory with the following specifications:
  • 38 by 24 pixels
  • Solid white background
  1. Edit db/payment_icons.yml file with the name, label and group of your icon. Valid group options are credit_cards, cryptocurrencies, wallets, bank_transfers and other.
  2. Push your changes to your fork (git push origin my_new_icon)
  3. Open a pull request. One of our awesome maintainers will review it.
The trademarks and trade names provided in this library are those of their respective owners.

payment_icons's People

Contributors

andrewpaliga avatar anotherjosmith avatar girasquid avatar j-mutter avatar nakulpathak3 avatar ouellettejordan avatar rafaelfranca avatar

Watchers

 avatar  avatar

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.