🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

bootpay-backend-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootpay-backend-nodejs

Bootpay Server Side Package for Node.js

Source
npmnpm
Version
1.0.9
Version published
Weekly downloads
19
533.33%
Maintainers
1
Weekly downloads
 
Created
Source

Bootpay Server Rest Client alt text

샘플 코드

NPM으로 다운 받은 경우

const RestClient = require('@bootpay/server-rest-client').RestClient

// or

import { RestClient } from '@bootpay/server-rest-client'

RestClient.setConfig(
    '59bfc738e13f337dbd6ca48a',
    'pDc0NwlkEX3aSaHTp/PPL/i8vn5E/CqRChgyEp/gHD0=',
    'development'
)
RestClient.getAccessToken().then(
    function(response) {
        console.log(response)
    }, function(e) {
        console.log(e)
    }
)
});

github으로 바로 다운 받은 경우

먼저 패키지를 모두 설치합니다

yarn install 

이후 빌드를 해서 dist로 js로 컴파일 합니다.

npm run build

그리고 dist로 output 된 패키지를 상대 경로로 가져와서 사용합니다.

const RestClient = require('./dist/bootpay').RestClient

// or

import { RestClient } from './dist/bootpay'

RestClient.setConfig(
    '59bfc738e13f337dbd6ca48a',
    'pDc0NwlkEX3aSaHTp/PPL/i8vn5E/CqRChgyEp/gHD0=',
    'development'
)
RestClient.getAccessToken().then(
    function(response) {
        console.log(response)
    }, function(e) {
        console.log(e)
    }
)
});

Keywords

결제

FAQs

Package last updated on 17 Sep 2021

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