Hi all. I know there are already a few posts about how to register a mutation notification filter but I was hoping if anyone perhaps has an example how to do this with the php SDK in Laravel. I have everything working fine for getting latest mutations and even automated payments. But I cannot seem to figure out what method I have to use to set or update a web hook. Now a cron job is getting the latest transactions every x minutes but of course it will be a more elegant way to only pull new mutations after a web hook POST request is received on my server :-)
What I use now for initialising and getting the latest mutations:
$fileName = storage_path('bunq/bunq.conf');
$apiContext = ApiContext::restore($fileName);
BunqContext::loadApiContext($apiContext);
and then a
$mutations = Payment::listing( $account_id , array("count"=> $count, "newer_id"=>$newerid) )->getValue();
What is the best way to add a notification filter with a similar request?
Grtz, Floris.
btw. This "ACE" label behind my name is quite incorrect :) I'm a novice really. Still learning.