NodeJS Library for iDIN (https://www.idin.nl/)
npm install node-idin
Node.js Library for iDIN. You can find all the protocol documentation here.
Supporting Node 10+.
Install the dep by:
``bash`
yarn add node-idin
Create a NodeIdin instance:
`ts
const config = {
merchantId: '35235',
merchantSubId: '0',
routingEndpoint: 'https://abnamro-test.bank-request.com/bvn-idx-bankid-rs/bankidGateway',
routingCert: '-----BEGIN CERTIFICATE-----...',
privateKey: '-----BEGIN RSA PRIVATE KEY-----...',
publicKey: '-----BEGIN PUBLIC KEY-----...',
publicKeyFingerprint: 'xekf2o3f...',
}
const idin = new NodeIdin(config);
`
Use the method you need:
`ts`
const directory = await idin.getDirectory();
`ts`
const transaction = await idin.getTransaction({
loa: 'loa3',
merchantReturnUrl: 'https://...',
idPrefix: 'RND',
requestedService: '21968',
defaultLanguage: 'en',
expirationPeriod: 'PT5M',
issuerId: 'randomId',
transactionId: 'randomId#2',
});
`ts``
const status = await idin.getStatus({ transactionId: '92fo2k3qdd' });
- Read protocol documentation for a better understanding of the parameters.
- This library does not fully implement the protocol and has some issues that still need to be addressed. Use at your own risk.