Before you start, make sure you already have created Brand ID and API Key from your developer dashboard by logging-in into merchant portal.
npm install https://github.com/CHIPAsia/chip-nodejs-sdk.git#v1.0.2yarn add https://github.com/CHIPAsia/chip-nodejs-sdk.git#v1.0.2Simple 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);npm run testCheck our examples here.