-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mollie gets HTTPresponse 502 back from webhook #9
Comments
Hi Owin, Here's an example I copied from one of my real life projects: [HttpPost]
public async Task<ActionResult> ProcessPayment(string id) {
await this._paymentService.ProcessPayment(id);
return new HttpStatusCodeResult(HttpStatusCode.OK);
} Your code looks fine to me. Is this a production or a test environment? Make sure your site publicly available on the internet and isn't blocked by a firewall or something. You could also try to post a payment id to your site yourself to see if that also gives the same 502 error. |
Thanx! It's a test environment. It is publicly available in the cloud, so there I see a difference between our codes is that you use an actionresult where Owin On Fri, Aug 5, 2016 at 10:46 AM, Vincent Kok notifications@github.com
|
Good to hear it's working. |
Sorry to open such an old topic, but could someone help please? I've tried everything from [FromBody] to just plain string and whatever I do, Mollie gets a 404.
When I completely remove the id parameter from my method, then Mollie can call it. But obviously, then I don't have the paymentId! :(
My routing is just default, shouldn't be a big deal right?
Can anyone shed some light on this? I'm pulling my hair out.... |
Looks like it might be a routing issue. Are you able to post to the API controller method yourself? You can test using using a simple plugin such as Postman (https://www.getpostman.com/) |
Hi Vincent, thank you kindly for your reply. I've been using Postman, but I am struggling to figure out what to enter for the body:
Do you know what the exact format is? I wish they'd just chosen a querystring parameter.... Would be so much easier. Final update
|
Hi Vincent,
I have implemented the webhook like this
I tried a few methods of returning a httpresponse 200, but it keeps failing which keeps Mollie retrying the webhook call.
I cannot see an implementation in your test project of the webhook and that makes sense, but you must have one, so my question is how do you let Mollie know that their webhook call succeeded?
Thanx a bunch!
Owin
The text was updated successfully, but these errors were encountered: