Skip to content

Repository files navigation

Chip NodeJS library

Prerequisite

Before you start, make sure you already have created Brand ID and API Key from your developer dashboard by logging-in into merchant portal.

Installation

npm

npm install https://github.com/CHIPAsia/chip-nodejs-sdk.git#v1.0.2

yarn

yarn add https://github.com/CHIPAsia/chip-nodejs-sdk.git#v1.0.2

Getting Started

Simple usage looks like:

varPublicRestApi=require('Chip').default;PublicRestApi.ApiClient.instance.basePath="https://gate.chip-in.asia/api/v1/";PublicRestApi.ApiClient.instance.token="TOKEN"letapiInstance=newPublicRestApi.PaymentApi();letbrandId="BRAND_ID";letcallback=(error,data,response)=>{if(error){console.log('API call failed. Error:');console.error(error);}else{console.log('API called successfully. Returned data:');console.log(data);}}apiInstance.paymentMethods(brandId,"EUR",{},callback);

Testing

npm run test

Example

Check our examples here.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages