0.5.0 • Published 8 months ago

bc-juspay-sdk v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

BetterCommerce JusPay NodeJS SDK

Juspay NodeJS SDK enables BetterCommerce client applications to integrate with JusPay merchant payment system.

Use below command for package installation:

npm install @better-commerce/bc-juspay-sdk

SDK Initialization

Use following snippet to initialize the SDK:

JuspayEnv.init()
.withCredentials("<merchantId>", "<apiKey>", "<baseUrl> OPTIONAL");

Usage Example

Adding a new customer:

const data = {
    object_reference_id: "john@smith.com",
    mobile_number: "2233556644",
    email_address: "john@smith.com",
    first_name: "John",
    last_name: "Smith",
    mobile_country_code: "+1",
};
const result = await Customer.create(data);
0.5.0

8 months ago

0.4.9

8 months ago

0.4.8

8 months ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago