-
Notifications
You must be signed in to change notification settings - Fork 1
/
RouteProvider.cs
45 lines (43 loc) · 1.66 KB
/
RouteProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;
namespace Nop.Plugin.Payments.GestPay
{
public partial class RouteProvider : IRouteProvider
{
public void RegisterRoutes(RouteCollection routes)
{
//Esito
routes.MapRoute("Plugin.Payments.GestPay.EsitoGestPay",
"Plugins/PaymentGestPay/EsitoGestPay/{esito}",
new { controller = "PaymentGestPay", action = "EsitoGestPay", esito = UrlParameter.Optional },
new[] { "Nop.Plugin.Payments.GestPay.Controllers" }
);
//s2s
routes.MapRoute("Plugin.Payments.GestPay.s2sHandler",
"Plugins/PaymentGestPay/s2sHandler",
new { controller = "PaymentGestPay", action = "s2sHandler" },
new[] { "Nop.Plugin.Payments.GestPay.Controllers" }
);
//Cancel
routes.MapRoute("Plugin.Payments.GestPay.CancelOrder",
"Plugins/PaymentGestPay/CancelOrder",
new { controller = "PaymentGestPay", action = "CancelOrder" },
new[] { "Nop.Plugin.Payments.GestPay.Controllers" }
);
//Errore generico
routes.MapRoute("Plugin.Payments.GestPay.Error",
"Plugins/PaymentGestPay/Error",
new { controller = "PaymentGestPay", action = "GeneralError" },
new[] { "Nop.Plugin.Payments.GestPay.Controllers" }
);
}
public int Priority
{
get
{
return 0;
}
}
}
}