bc-juspay-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.4.9 • Public • Published

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);

Dependents (0)

Package Sidebar

Install

npm i bc-juspay-sdk

Weekly Downloads

6

Version

0.4.9

License

MIT

Unpacked Size

146 kB

Total Files

68

Last publish

Collaborators

  • teknozest