0.1.3 • Published 6 years ago

react-credit-card-payment v0.1.3

Weekly downloads
17
License
-
Repository
-
Last release
6 years ago

React Credit Card Payment

alt text

Install

npm install --save react-credit-card-payment

Usage

    import Card from 'react-credit-card-payment'
    ...

    <Card
      bankName='ANZ Bank'
      cardHolder='Andrew White'
      cardNumber='1234567898765432'
      issuer='mastercard'
      theme='light'
    />

Props

  • bankName(string): Bank or institution name for the card. Default value is 'Bank Name'
  • cardHolder (string): Card holder name. Default value is 'Card Holder'
  • cardNumber (string): Card number for the card. Default value is '** ** ** **'
  • issuer (string): Set the issuer for the card. Default value is empty. (valid value: 'mastercard' | 'visa')
  • theme (string): Theme of the card. Default value is 'light'. (valid value: 'light' | 'dark')

Copyright Timothy Alfares 2018