GoCardless what is the secret ID?

Hello,

I am currently trying to setup GoCardless. I set up an access token, however it doesnt show me an ID. I just entered a “Name” and it gave me the secret.

NORDIGEN_SECRET_ID=InvoiceNinja
NORDIGEN_SECRET_KEY=live_asdasdasdasdasd
is in the .env.

It gives the error

[2024-09-06 14:12:18] production.ERROR: Authentication failed {"exception":"[object] (Nordigen\\NordigenPHP\\Exceptions\\NordigenExceptions\\NordigenException(code: 401): Authentication failed at /var/www/invoiceninja/vendor/nordigen/nordigen-php/src/Exceptions/ExceptionHandler.php:53)
[stacktrace]
#0 /var/www/invoiceninja/vendor/nordigen/nordigen-php/src/Http/RequestHandlerTrait.php(31): Nordigen\\NordigenPHP\\Exceptions\\ExceptionHandler::handleException()
#1 /var/www/invoiceninja/vendor/nordigen/nordigen-php/src/API/NordigenClient.php(107): Nordigen\\NordigenPHP\\API\\RequestHandler->post()
#2 /var/www/invoiceninja/app/Helpers/Bank/Nordigen/Nordigen.php(50): Nordigen\\NordigenPHP\\API\\NordigenClient->createAccessToken()
#3 /var/www/invoiceninja/app/Http/Controllers/Bank/NordigenController.php(81): App\\Helpers\\Bank\\Nordigen\\Nordigen->__construct()
#4 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\Bank\\Nordigen

Any idea on this?

Thanks!

Hi,

I found this article but I’m not sure if we use the new or old GoCardless API

Probably the old then, then there is no way to get it working atm?

Not sure that’s correct, I believe other people are using the integration

@timow It could be failing because of an incorrect SECRET_ID. According to the following help document, you should have been issued your secret ID when you setup your Nordigen account. You must use that secret ID in conjunction with your newly created API key.

1 Like

Didnt receive something like that. Probably the docs are outdated, I will contact the support and ask them

Support says it is incompatible, but is anyone here using it with their new API?

You should be able to find the credentials on the GoCardless/Nordigen bank account data API developer dashboard.

Can you guide me where I find it?

When I create one it just gives me an access token.

If you click ‘Create new’ on this page you’ll receive a secret and key

https://bankaccountdata.gocardless.com/user-secrets/

2 Likes

Thank you, I didnt know this seperate page for account data exists!

Hi there, do you see by any chance the option that instead of the pair of SECRET_ID & SECRET_KEY the access token can be used for the Gocardless API in the env file?

When you send the pair (ID & SECRET) for the first time, the API sends a response with a access & refresh token. With the refresh token it is possible to request a new access token after the access token has expired.

So it would be possible to script & automate this process.

Please create an issue on GitHub for features requests.

Also, please create new posts on the forum to prevent notifying past users.