Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

luckyjun-react-payments

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luckyjun-react-payments

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

React Payments 💳

A Simple Payments manager 🗂️

Run Tests Hits npm version

📙 Storybook

Try on ⚡️ StackBlitz

⚙️ Features

😎 Focus on User Experience

  • Automatic next Input focusing 👀
  • Re-Usable, Every State is on you! 📑
  • Validation Complete 🚥
  • Flexible CSS, optimal in mobile 🖼️

🙌 Get Start!

Install

$ npm i @luckyjun/react-payments

$ yarn add @luckyjun/react-payments

Implement Component in your Project

import { Payments } from '@luckyjun/react-payments';

function App() {
  return (
    <div className="App">
      <Payments />
    </div>
  )
}

export default App

📬 Type & Interface

type CardList = { [cardId: string]: Card }

type Card = {
    cardCompany: {
        name: string;
        theme?: any;
    };
    cardNickname: string;
    cardNumbers: string[];
    expireDates: [string, string];
    cardOwner: string;
    securityCode: string;
    passwords: string[];
}

interface PaymentsProps {
  cardList: CardList;
  onCardConfirm: (card: Card, cardId: string) => any;
  onCardDelete: (card: Card, cardId: string) => any;
  onCardUpdate: (card: Card, cardId: string) => any;
  onCardSubmit: (card: Card, cardId: string) => any;
className?: string;
}

Next Step, TDD 클린코드 with React

TODO

  • [] 서버 구축 해서 JS 제공할 수 있도록 해주기 -> Micro-Frontend
  • [] 가상 랜덤 키보드 넣기

FAQs

Package last updated on 21 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc