This repository has been archived by the owner on Jan 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRouteProvider.cs
48 lines (42 loc) · 1.68 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
46
47
48
using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;
namespace Nop.Plugin.Payments.EPay
{
public partial class RouteProvider : IRouteProvider
{
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("Plugin.Payments.EPay.Configure",
"Plugins/PaymentePay/Configure",
new { controller = "PaymentEPay", action = "Configure" },
new[] { "Nop.Plugin.Payments.EPay.Controllers" });
routes.MapRoute("Plugin.Payments.EPay.PaymentInfo",
"Plugins/PaymentePay/PaymentInfo",
new { controller = "PaymentEPay", action = "PaymentInfo" },
new[] { "Nop.Plugin.Payments.EPay.Controllers" });
//PDT
routes.MapRoute("Plugin.Payments.EPay.PDTHandler",
"Plugins/PaymentePay/PDTHandler",
new { controller = "PaymentEPay", action = "PDTHandler" },
new[] { "Nop.Plugin.Payments.EPay.Controllers" });
//Open
routes.MapRoute("Plugin.Payments.EPay.Open",
"Plugins/PaymentePay/Open",
new { controller = "PaymentEPay", action = "Open" },
new[] { "Nop.Plugin.Payments.EPay.Controllers" });
//Cancel
routes.MapRoute("Plugin.Payments.EPay.CancelOrder",
"Plugins/PaymentePay/CancelOrder",
new { controller = "PaymentEPay", action = "CancelOrder" },
new[] { "Nop.Plugin.Payments.EPay.Controllers" });
}
public int Priority
{
get
{
return 0;
}
}
}
}