0.1.6 • Published 2 years ago

@systeminfected/react-payment-icons v0.1.6

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
2 years ago

React Payment icons

A react component library that easily integrate with the Shopify GrapQL API to display available payment methods. The naming convention for the icons are matched with the response data from paymentSettings

Example query:

query {
    shop {
      paymentSettings {
        acceptedCardBrands
        supportedDigitalWallets
      }
    }
  }

Usage

npm i @systeminfected/react-payment-icons

Example

import { Icon } from 'react-payment-method-icons'

<Icon icon='MASTERCARD'/>

Credit

Logos forked from https://github.com/payrexx/payment-logos

A collection of payment method logos. The logos are free to use for commercial purposes.

Payment methods so far

ImageBrandShopify API name
MastercardMASTERCARD
VisaVISA
American ExpressAMERICAN_EXPRESS
Google PayGOOGLE_PAY
Apple PayAPPLE_PAY
Shopify PaySHOPIFY_PAY
KlarnaKLARNA

Payment methods still to be added

Credit cards

ImageBrand
Discover
Diners
JCB
Cartes bancaires

There are additional credit card logos in the repository.

Wallets

ImageBrand
PayPal
Samsung Pay
Ali Pay
WeChat Pay

Other Payment Methods

Over 120 additional payment method logos.

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago