Hey, I tried to create a callback but it's all a bit user unfriendly. I expected such callbacks to be created in an UI somewhere, like it works with Stripe, PayPal and Mollie etc.
Anyway I tried the following:
`
$apiContext = ApiContext::restore(DIR.'/config/bunq.conf');
BunqContext::loadApiContext($apiContext);
$monetaryAccountListing = MonetaryAccount::listing();
$monetaryAccounts = $monetaryAccountListing->getValue();
$monetaryAccount = $monetaryAccounts[0]->getMonetaryAccountBank();
$filters = [
new NotificationFilterUrl('PAYMENT', 'https://test'),
];
$callback = NotificationFilterUrlMonetaryAccountInternal::createWithListResponse($monetaryAccount->getId(), $filters);
var_dump($callback);
`
Which returns the following:
`
(
[0] => bunq\Model\Core\NotificationFilterUrlMonetaryAccountInternal Object
(
[notificationFilters:protected] =>
[notificationFiltersFieldForRequest:protected] =>
)
)
`
I am not sure if this worked? How can I see all active callbacks? How can I delete them?
Thanks!