Here you can find the node.js scripts to test your connection with the ING sandbox for Open Banking APIs.
- node.js (tested on v20.11.1)
- Change directory:
cd scripts/javascript
- Run
npm i
to install the runtime dependencies - Run
node call_showcase_single.js
to test your connection to ING OAuth 2.0 API
- For connecting to Showcase API we provide three scripts:
call_showcase_single
which uses the old Cavage signaturecall_showcase_mtls
which uses mutual TLS authenticationcall_showcase_jws
which uses the new JWS signature when making the request
call_payment_registration
which registers a new merchant for Payment Request Registration API, another premium API from INGcall_account_information_api
which goes through the flow of retrieving account data for a customer. This is a PSD2 API.
Inside the apps/
directory you create your own configuration and use your own certificates.
Use the configuration files provided in the apps/sandbox/
directory as an example, all parameters are mandatory.
For premium configurations, the keyId
parameter is the clientID
of the application created in the
Developer Portal. For PSD2 configurations the keyId
is the SN field
of the signing certificate.
To use your own configuration, in the scripts mentioned above, when declaring the
Configuration
object just pass the name of your own directory and specify whether you
want to use the PSD2 configuration or not.
Example
// uses the premium configuration from 'myOwnDirectory'
const configuration = new Configuration("myOwnDirectory", false)
// uses the psd2 configuration from 'myOwnDirectory'
const configuration = new Configuration("myOwnDirectory", true)
Does not work behind a proxy