Skip to content

⚛️ React 모바일 페이먼츠 애플리케이션 💳

Notifications You must be signed in to change notification settings

ingdaeho/react-payments

 
 

Repository files navigation

Payment Widget

Getting Started

Installation

npm install @ingdaeho/payments

yarn add @ingdaeho/payments

pnpm add @ingdaeho/payments

Requirements

"node": ">=18"
"peerDependencies": {
  "react": "^18.2.0",
  "react-dom": "^18.2.0"
}

Usage

import { usePaymentWidget } from '@ingdaeho/payments';
import '@ingdaeho/payments/styles.css';

function Component() {
  const { PaymentWidget, initPayment } = usePaymentWidget();

  return (
    <div>
      <button onClick={initPayment}>start Payment</button>
      <PaymentWidget />
    </div>
  );
}

About

⚛️ React 모바일 페이먼츠 애플리케이션 💳

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 75.0%
  • HTML 14.3%
  • CSS 9.1%
  • Other 1.6%