Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ZettleWebhookController.cs

using Microsoft.AspNetCore.Mvc;
using Nop.Plugin.Misc.Zettle.Services;

namespace Nop.Plugin.Misc.Zettle.Controllers;

public class ZettleWebhookController : Controller
{
    #region Fields

    protected readonly ZettleService _zettleService;

    #endregion

    #region Ctor

    public ZettleWebhookController(ZettleService zettleService)
    {
        _zettleService = zettleService;
    }

    #endregion

    #region Methods

    [HttpPost]
    public async Task Webhook()
    {
        await _zettleService.HandleWebhookAsync(Request);
        return Ok();
    }

    #endregion
}