GOV.UK Pay prototype for an open banking user journey
Create a .env
file by making a copy of .env.example
and fill in values the environment variables.
npm install && npm run compile
npm run start
Ensure the following environment variables are passed in to the run command or set in the .env
file:
Environment variable | Description |
---|---|
TINK_CLIENT_ID | The client ID for the Tink app |
TINK_CLIENT_SECRET | The client secret for the Tink app |
Visit http://localhost:8080/tink/payment
Ensure the following environment variables are passed in to the run command or set in the .env
file:
Environment variable | Description |
---|---|
TRUELAYER_CLIENT_ID | The client ID for the TrueLayer app |
TRUELAYER_CLIENT_SECRET | The client secret for the TrueLayer app |
TRUELAYER_PUBLIC_KEY_KID | The public key ID (KID) for signing API requests. This was generated by the TrueLayer console when the public key was uploaded. |
TRUELAYER_PRIVATE_KEY_PEM | The private key for signing API requests |
A set of these credentials are available in the Pay Bitwarden account. Alternatively you can generate a fresh set with Truelayer.
Set the environment variables and then run with:
npm run start
Visit http://localhost:8080/truelayer/payment
Ensure the following environment variables are passed in to the run command or set in the .env
file:
Environment variable | Description |
---|---|
ECOSPEND_CLIENT_ID | The client ID for the Ecospend app |
ECOSPEND_CLIENT_SECRET | The client secret for the Ecospend app |
You can generate a secret in the Ecospend Management Console.
Visit http://localhost:8080/ecospend/payment
After the confirming the payment through the bank, the app will redirect to a predefined redirect_url. The redirect_url has to be registered in the Ecospend Management Console.