This commit is contained in:
Paul Schneider 2026-02-14 16:54:27 +00:00
commit 45514010f2
3505 changed files with 154 additions and 523 deletions

View file

@ -1,18 +0,0 @@
using Microsoft.AspNetCore.Mvc;
using Yavsc.Helpers;
using Yavsc.Models.Billing;
namespace Yavsc.ViewComponents
{
public class PayPalButtonViewComponent : ViewComponent
{
public IViewComponentResult Invoke(NominativeServiceCommand command, string apiControllerName , string controllerName)
{
ViewBag.CreatePaymentUrl = Request.ToAbsolute($"api/{apiControllerName}/createpayment/"+command.Id);
ViewBag.ExecutePaymentUrl = Request.ToAbsolute("api/payment/execute");
ViewBag.Urls=Request.GetPaymentUrls(controllerName,command.Id.ToString());
return View ( command);
}
}
}