Skip to content

Commit b840266

Browse files
Minor fix
1 parent ce549d2 commit b840266

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

src/Plugins/SmartStore.PayPal/RouteProvider.cs

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void RegisterRoutes(RouteCollection routes)
3131

3232
//Legacay Routes
3333
routes.MapRoute("SmartStore.PayPalExpress.IPN",
34-
"Plugins/PaymentPayPalStandard/IPNHandler",
34+
"Plugins/PaymentPayPalExpress/IPNHandler",
3535
new { controller = "PayPalExpress", action = "IPNHandler" },
3636
new[] { "SmartStore.PayPal.Controllers" }
3737
)
@@ -44,37 +44,33 @@ public void RegisterRoutes(RouteCollection routes)
4444
)
4545
.DataTokens["area"] = "SmartStore.PayPal";
4646

47-
routes.MapRoute("Plugin.Payments.PayPalStandard.IPNHandler",
47+
routes.MapRoute("SmartStore.PayPalStandard.IPN",
4848
"Plugins/PaymentPayPalStandard/IPNHandler",
4949
new { controller = "PayPalStandard", action = "IPNHandler" },
5050
new[] { "SmartStore.PayPal.Controllers" }
5151
)
5252
.DataTokens["area"] = "SmartStore.PayPal";
5353

54+
routes.MapRoute("SmartStore.PayPalStandard.PDT",
55+
"Plugins/PaymentPayPalStandard/PDTHandler",
56+
new { controller = "PayPalStandard", action = "PDTHandler" },
57+
new[] { "SmartStore.PayPal.Controllers" }
58+
)
59+
.DataTokens["area"] = "SmartStore.PayPal";
5460

61+
routes.MapRoute("SmartStore.PayPalExpress.RedirectFromPaymentInfo",
62+
"Plugins/PaymentPayPalExpress/RedirectFromPaymentInfo",
63+
new { controller = "PayPalExpress", action = "RedirectFromPaymentInfo" },
64+
new[] { "SmartStore.PayPal.Controllers" }
65+
)
66+
.DataTokens["area"] = "SmartStore.PayPal";
5567

56-
//TODO: Check whether these Routes needs to stay
57-
//routes.MapRoute("Payments.PayPal.RedirectFromPaymentInfo",
58-
// "Plugins/PayPalExpress/RedirectFromPaymentInfo",
59-
// new { controller = "PayPal", action = "RedirectFromPaymentInfo" },
60-
// new[] { "SmartStore.PayPal.Controllers" }
61-
//)
62-
//.DataTokens["area"] = "SmartStore.PayPal";
63-
64-
//routes.MapRoute("Plugin.Payments.PayPalStandard.PDTHandler",
65-
// "Plugins/PaymentPayPalStandard/PDTHandler",
66-
// new { controller = "PaymentPayPalStandard", action = "PDTHandler" },
67-
// new[] { "SmartStore.Plugin.Payments.PayPalStandard.Controllers" }
68-
//)
69-
//.DataTokens["area"] = "Payments.PayPalStandard";
70-
71-
//routes.MapRoute("Plugin.Payments.PayPalStandard.CancelOrder",
72-
// "Plugins/PaymentPayPalStandard/CancelOrder",
73-
// new { controller = "PaymentPayPalStandard", action = "CancelOrder" },
74-
// new[] { "SmartStore.Plugin.Payments.PayPalStandard.Controllers" }
75-
//)
76-
//.DataTokens["area"] = "Payments.PayPalStandard";
77-
68+
routes.MapRoute("SmartStore.PayPalStandard.CancelOrder",
69+
"Plugins/PaymentPayPalStandard/CancelOrder",
70+
new { controller = "PayPalStandard", action = "CancelOrder" },
71+
new[] { "SmartStore.PayPal.Controllers" }
72+
)
73+
.DataTokens["area"] = "Payments.PayPal";
7874
}
7975

8076
public int Priority

0 commit comments

Comments
 (0)