bc-juspay-sdk
v0.4.9
Published
Juspay NodeJS SDK enables BetterCommerce client applications to integrate with JusPay merchant payment system.
Downloads
129
Maintainers
Readme
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: "[email protected]",
mobile_number: "2233556644",
email_address: "[email protected]",
first_name: "John",
last_name: "Smith",
mobile_country_code: "+1",
};
const result = await Customer.create(data);