1.1.7 • Published 8 months ago

@thenhatat/cr-payment-sdk v1.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

CrPayment SDK Package

This SDK contain the utility functions to interact with CrPayment API.

Table of Contents

Installation

To use this package in your project, you can install it via npm or yarn.

Using npm

npm install @thenhatat/cr-payment-sdk

Using yarn

yarn add @thenhatat/cr-payment-sdk

Usage

Once the package is installed, you can import and use it in your TypeScript or JavaScript code.

import {CrPayment} from "@thenhatat/cr-payment-sdk";

const crPayment = new CrPayment({
    api_keys: {
        public_api_key: 'string',
        private_api_key: 'string'
    },
    network: 'testnet'
});

// For creating payment
const session_1 = await crPayment.session.create({
    itemId: '1',
    amount: '1'
});

// For get status of payment
const session_2 = await crPayment.session.getPaymentState({
    session_id: sessionId
})
1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.0

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago