Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Return status code 200 on virtual route

Started by Thomas Vantuycom 7 years ago · 2 replies · 455 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 Paul Hodges, 4 weeks ago
19 484 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago