nordigen / nordigen-php

MIT License
40 stars 17 forks source link

Request to Institution returned an error. CreateTransactionConsent error. #6

Closed filippotoso closed 2 years ago

filippotoso commented 2 years ago

Describe the bug I was able to link my bank account in Nordigen backend and see its transactions.

I tried to obtain the same result using the Laravel application included in the example folder. I selected the country and the bank, authenticated with the bank but got the following redirect url with no transactions:

http://localhost:8000/results?ref={some id }&error=Request%20to%20Institution%20returned%20an%20error.%20CreateTransactionConsent%20error.&details={some data}

What am I missing?

To Reproduce Steps to reproduce the behavior:

  1. Clone the package
  2. cd example
  3. composer update (the composer.lock isn't up to date with the composer.json)
  4. configure the enviromnet variables with ID and KEY created in Nordigen backend
  5. php artisan serve
  6. visit http://localhost:8000 and follow the instructions

Expected behavior I was expecting to obtain a JSON with the account data

filippotoso commented 2 years ago

Today it's almost working.

After the bank succesfull authentication, I get redirected to the /results route but this exception is raised: "Requisition id not found."

No change in the code has been made.

filippotoso commented 2 years ago

I was able to obtain the transactions I needed using the following code in the NordigenService class

$this->client->account($accountId)->getAccountTransactions()