Hi Gregory Goijaerts Gregory and thanks for your reply.
This happens when using the php sdk:
// given
$user = $this->bunq->getCurrentUser();
$callbackUrl = "https://mysite.test/webhook";
// when
$this->bunq->addCallbackUrl($callbackUrl);
This is the NotificationFilter object:
bunq\Model\Generated\Object\NotificationFilter {#401
#notificationDeliveryMethod: null
#notificationTarget: null
#category: null
#notificationDeliveryMethodFieldForRequest: "URL"
#notificationTargetFieldForRequest: "https://mysite.test/webhook"
#categoryFieldForRequest: "PAYMENT"
}
And this is the error:
1) Tests\Unit\BunqPaymentTest::it_adds_a_callback_url
bunq\Exception\BadRequestException: HTTP Response Code: 400
The response id to help bunq debug: 51bcfbd7-baaf-4264-9b3c-f991d1ed4888
Error message: Superfluous field "card_ids".Superfluous field "card_limits".
I've given up trying it like this and currently using Postman package to try to register my callback url, but I'm stuck on the error 'Route not found'. I just want to know how a request to the callback url looks like so I can write the logic. But that isn't documented.
Grtz,
Thomas