
Security News
Node.js TSC Declines to Endorse Feature Bounty Program
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
NodeJS SDK to interact with the Lean API.
More information leantech.me
Install from NPM Registry
npm install -S @leantechnologies/node-sdk
Make sure you have your App Token, Certificates and Webhook secret set.
To get your App Token and Certificates, please register dev.leantech.me and create and account.
Keep your certificates (certificate, private key, certificate chain) in a secure location.
Import Lean package, as well as Environment type
import Lean, { Environment } from '@leantechnologies/node-sdk'
Create the Lean object, referencing the requirements above (App Token, Certificates and Webhook secret)
const lean = new Lean(LEAN_APP_TOKEN, Environment.PRODUCTION, {
ca: "static/certs/cachain.crt",
cert: "static/certs/cert.crt",
key: "static/certs/key.pem"
}, WEBHOOK_SECRET)
}
You're ready to call Lean API using the NodeJS SDK. Example:
async _getSupportedBanks(): Promise<any>{
return await this._lean.getSupportedBanks()
}
You should get a list of supported banks in the response.
Param | Type |
---|---|
appToken | string |
environment | Environment |
mtls | MTLSSettings |
webhookSecret | string |
Param | Type |
---|---|
appUserId | string |
Param | Type |
---|---|
customerId | string |
Param | Type |
---|---|
customerId | string |
Param | Type |
---|---|
customerId | string |
accountId | string |
Param | Type |
---|---|
customerId | string |
accountId | string |
startDate | string |
endDate | string |
insights | boolean |
Param | Type |
---|---|
customerId | string |
Param | Type |
---|---|
displayName | string |
name | string |
bankIdentifier | LeanBankIdentifiers | string |
address | string |
city | string |
country | LeanCountries | string |
accountNumber | string |
iban | string |
swiftCode | string |
Param | Type |
---|---|
customerId | string |
displayName | string |
name | string |
bankIdentifier | LeanBankIdentifiers | string |
address | string |
city | string |
country | LeanCountries | string |
accountNumber | string |
iban | string |
swiftCode | string |
Param | Type |
---|---|
customerId | string |
Param | Type |
---|---|
amount | number |
currency | string |
description | string |
paymentDestinationId | string |
customerId | string |
Param | Type |
---|---|
paymentIntentId | string |
Param | Type |
---|---|
webhookData | string |
webhookSignature | string |
FAQs
Lean NodeJS server side library
We found that lean-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.