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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Return status code 200 on virtual route

Started by Thomas Vantuycom 7 years ago · 2 replies · 365 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 Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago