Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Return status code 200 on virtual route

Started by Thomas Vantuycom 7 years ago · 2 replies · 489 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 complanar, 6 days ago
6 139 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 51 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago