Code Monkey home page Code Monkey logo

Comments (5)

lgoudriaan avatar lgoudriaan commented on August 19, 2024

Hi,

You will have to generate an URL to your own application where you handle a webhook and pass that in the payment request.

You can find more info here: https://www.mollie.com/en/docs/webhook

Hope this helps 😄

from mollieapi.

calves07 avatar calves07 commented on August 19, 2024

Facing a similar with problem...

[HttpPost]
[AllowAnonymous]
public async Task<ActionResult> Webhook(String id)

The function is called but id is empty. Any thoughts?

from mollieapi.

cassie113nl avatar cassie113nl commented on August 19, 2024

Try:

    [AllowAnonymous]
    [HttpPost("Webhook")]
    [ProducesResponseType(StatusCodes.Status200OK)]
    public async Task<HttpStatusCode> Webhook([FromForm] string id)

from mollieapi.

calves07 avatar calves07 commented on August 19, 2024

Thanks, it works that way. Do you know why it failed with what I was using?
I thought it was because of the FromForm, I only tried with FromBody before but it didn't work as well.

from mollieapi.

cassie113nl avatar cassie113nl commented on August 19, 2024

A lot of trial and error and some debugging😉

from mollieapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.