Hi Bastiaan ,
I fixed the problem with the webhook not being called. The url had an (extremely hard to catch ;-)) typo.... doh! :-(
But now the next problem arises:
When transferring funds between two bunq users in the sandbox the https://webhook.site webhook is indeed called twice for a single transaction (between bunq accounts):
- One for the Bakker user (MUTATION_CREATED)
- One for the the Bax user (MUTATION_RECEIVED)
When changing the webhook to use the "real" webhook pointing to our application only the first is delivered. We are using ngrok to proxy the requests this is logged:
POST / 404 NOT FOUND
POST / 404 NOT FOUND
POST /webhooks/bunq 404 NOT FOUND
All these request come from the bunq sandbox. Do you know why there is a post to '/' and not '/webhooks/bunq' ?
PS. All works fine in production btw. We are just trying to setup the sandbox environment again in our development environments.