npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-toss-payments

v1.0.1

Published

리액트 네이티브용 토스페이먼츠 결제 연동 라이브러리

Downloads

53

Readme

react-native-toss-payments

이슈 및 피드백은 항상 환영합니다!

설치방법(Installation)

npm install react-native-toss-payments
npm install react-native-webview

or

yarn add react-native-toss-payments
yarn add react-native-webview

사용방법(Usage)

import TossPayment from "react-native-toss-payments";

// ...

<TossPayment 
  clientKey={YOUR_CLIENT_KEY} // 토스로 부터 발급받은 TossClientKey입니다.
  payment={YOUR_TOSS_PAYMENT_DATA} // 토스결제시 필요한 토스 결제 정보입니다.
  onApproveError={onApproveError} // 토스 결제 승인 네트워크 오류시 handle하는 함수입니다.
  onApproveFailed={onApproveFailed}  // 토스 결제 승인시 승인 실패 handle하는 함수입니다.
  onApproveSucceed={onApproveSucceed} // 토스 결제 승인시 승인 성공 handle하는 함수입니다.
/>

참조(Reference)

자세한 참조사항은 토스페이먼츠에서 확인하실 수 있습니다. | Prop | Description | Required | Default | Type | |------------------------|------------------|----------|---------|-----------------------------------------| | clientKey | 토스로 부터 발급받은 ClientKey입니다. | true | None | string | | payment | 토스 결제에 필요한 결제정보데이터 입니다. | true | None | TossPaymentRequestDataTypes | | onLoading | 토스 결제 모듈 로딩시 작동하는 함수입니다. | false | None | () => void | | onApproveError | 토스 결제 승인 네트워크 오류시 handle하는 함수입니다. | true | None | () => void | | onApproveFailed | 토스 결제 승인시 승인 실패 handle하는 함수입니다. | true | None | (e:TossPaymentFailMessageTypes) => void | | onApproveSucceed | 토스 결제 승인시 승인 성공 handle하는 함수입니다. | true | None | (e:TossPaymentApproveTypes) => void |

주의사항

This is Tosspayment logic

토스페이먼츠의 모든 결제 과정중 결제요청상태만을 현재 버전에서 지원하고있습니다. 이후 승인 API 요청부터는 onApproveSucceed통하여 개인 서버에서 처리해야합니다.

자세한 로직은 토스페이먼츠 결제가이드에서 확인해주세요!

라이센스(License)

MIT


Made with create-react-native-library 감사합니다 :)