Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Return status code 200 on virtual route

Started by Thomas Vantuycom 7 years ago · 2 replies · 538 views
7 years ago

I'm working on a plugin to receive payments through Mollie. Part of the payment flow is a call from Mollie's side to a webhook on my server. I'm able to create a virtual route that acts as a webhook address, I receive the call, but I need to respond with a status code 200 to notify that I received the call and stop Mollie from trying again. How do I do that in Grav, if no actual page corresponds to the webhook route?

7 years ago

What are your virtual route pages currently returning for HTTP status?

7 years ago

It returns a 404, despite the fact that I receive the webhook call and am able to process it.

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 7 days ago
4 151 6 days ago
Support · by nwhitfield, 1 week ago
2 131 1 week ago
Support · by stell, 3 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 556 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago