Url and Action method in nopCom 4.0

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi All,

In nopCommerce 3.90 I access a action method with the url:

                                               Controller                ActionMethod             Order Guid
http://www.mystore.com/PaymentMyController/MyActionMethod/1020742f-8c30-426f-966f-2baa01f2e450

Now if I do not place /Admin in this way:

http://www.mystore.com/Admin/PaymentMyController/MyActionMethod/1020742f-8c30-426f-966f-2baa01f2e450

I receive the error message: "The page cannot be exhibit due to a internal server error"

What can be? A Routing or something else related?
6 years ago
See,

If I place http://www.mystore.com/PaymentPaypalStandard/IPNHandler and hit enter I receive a blank page then in the System/Log I see the message Paypal IPN failed. The IPNHandler Action returns Content("")

If I make the same with PDTHandler nopCommerce makes a redirect to home page (a fallback?) why PDTHandler returns RedirectToAction("CheckoutCompleted")

If I place http://www.mystore.com/PaymentMyPayment/MyActionMethod I receive the Page not found error message and the page layout with no style. MyActionMethod returns Content("")

Still using RouteProvider.cs and all settings of PaypalStandard like, the PaypalStandard Action methods have no attribute how route, verbs etc... Logically  Configure methods have attributes...
6 years ago
Ok I solve the problem.

The problem go that I'm using the CheckMoneyOrder plugin how base to adapting my payment plugin.
The controller is decorated with [AuthorizeAdmin] and [Area(AreaNames.Admin)] attributes.
Then I noticed too that only Paypal Standard uses a RouteProvider.cs file but the attributes stay only on Configure action methods logically why have the 3 methods IPNHandler, PDTHandler and CancelOrder that not work inside Admin area.

All I need is move the attributes for the Configure methods and all works fine.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.