0.1.6 • Published 12 months ago

@systeminfected/react-payment-icons v0.1.6

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
12 months 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

12 months ago

0.1.5

12 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago