@reef gate ,
I've followed the documentation, and set up a subscription flow.
However I'm a bit confused as to which webhook to use.
I can see a clear example under the normal webhooks, if I understand correctly:
- I should pass a webhook url when creating the first payment.
- My webhookcontroller will then be called when that payment has been changed.
- My controller will then further handle the flow by fetching the mandate and then create a subscription.
- With the subscription creation I should then pass another webhook.
- Every change to a payment under that subscription will be sent to that webhook.
In regards to validation I saw that the next-gen webhooks create a rotating secret in the dashboard. But I don't see the possibility to subscribe to the subscription or payments events. I only see the payment link, sales invoice or balance transaction.
Under Webhooks- Best practices I can see an example of how to manually verify the X-Mollie-Signature and then use a Shared Secret.
Where do I get the Shared Secret from?
Or where do I set this?
I'm pretty new to this, so my apologies if for my questions.
Regards,
Tino