GithubHelp home page GithubHelp logo

dykim413 / iamport-react-native Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamport/iamport-react-native

0.0 0.0 0.0 255.82 MB

React Native용 아임포트 일반.결제 및 휴대폰 본인인증 모듈입니다.

License: MIT License

JavaScript 36.91% Ruby 1.25% C 0.05% Objective-C 6.61% Java 10.74% Kotlin 0.58% TypeScript 42.18% Swift 0.46% Starlark 1.23%

iamport-react-native's Introduction

iamport-react-native

alt text

아임포트 리액트 네이티브 모듈입니다.

버전 정보

최신버전은 v2.0.1입니다. 버전 히스토리는 버전 정보를 참고하세요.

지원 정보

아임포트 리액트 네이티브 모듈은 결제 및 휴대폰 본인인증 기능을 제공합니다. 결제시 지원하는 PG사와 결제수단에 따른 자세한 정보는 지원 정보를 참고하세요.

설치하기

아래 명령어를 통해 아임포트 모듈을 귀하의 리액트 네이티브 프로젝트에 추가할 수 있습니다. react-native-webview 모듈은 아임포트 모듈에 dependent하기 때문에 반드시 함께 설치해야 하며 10.8.3 이상의 버전이 요구됩니다. 보다 자세한 안내는 설치하기를 참고하세요.

설정하기

iOS 설정하기

iOS에서 아임포트 모듈을 사용하기 위해서는 추가적인 설정이 필요합니다. 보다 자세한 설명은 iOS 설정하기를 참고하세요.

Expo 설정하기

Expo 프로젝트에서 아임포트 모듈을 사용하기 위해서는 추가적인 설정이 필요합니다. 보다 자세한 설명은 Expo에서 아임포트 연동하기를 참고하세요.

실시간 계좌이체 설정하기

웹 표준 이니시스와 나이스 정보통신은 뱅크페이 앱을 통해 실시간 계좌이체를 진행합니다. 뱅크페이에서 결제 인증 후 본래의 앱으로 복귀 해 다음단계로 진행을 하려면 별도 설정이 요구됩니다. 자세한 내용은 실시간 계좌이체 설정하기를 참고하세요.

예제

아임포트 결제연동 모듈을 사용해 아래와 같이 일반/정기결제 및 휴대폰 본인인증 기능을 구현할 수 있습니다. 현재 구현된 예제들에 대한 설명 및 라이브러리 사용에 필요한 파라미터는 예제를 참고하세요.

콜백 함수 설정하기

콜백 함수는 필수입력 필드로, 결제/본인인증 완료 후 routing을 통한 이동을 위해 아래와 같이 로직을 작성할 수 있습니다. 콜백 함수에 대한 자세한 설명은 콜백 설정하기를 참고하세요.

function callback(response) {
  navigation.replace('Result', response);
}

iamport-react-native's People

Contributors

anymate98 avatar dependabot[bot] avatar devxoul avatar hyukkwonepic avatar jangbora avatar smc0210 avatar soleechoi avatar sunjae-kim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.