worldpay paymentform.cshtml partial view not showing
I'm almost done with creating WorldPay payment provider plugin for an ecommerce site I'm working on. However, I ran into an issue (I'm sure it is simple) that I struggle now to solve.
I have WorldPay plugin project which has all necessary classes (i.e. provider, methods, controller, etc.). And I created a PaymentForm.cshtml file to capture worldpay customer details.
In WorldPayCheckoutPaymentGatewayMethod I added the attribute[GatewayMethodUi("WorldPay.WorldPay")] to the class, and the same for WorldPayPaymentController and for WorldPayPaymentController.PaymentForm method too.
The controller got the attribute [PluginController("MerchelloWorldPay")] and in FastTrackUi I created the area MerchelloWorldPay. Under MerchelloWorldPay I have the necessary js files as well as dialogs folder and WorldPayment folder with PaymentForm.cshtml file.
I could add worldpay as a payment gateway with no issues, display it under payment methods option during the checkout process, but not able to show PaymentForm.
Note WorldPayPaymentController inherits from CheckoutPaymentControllerBase
and WorldPayCheckoutPaymentGatewayMethod inherits from RedirectPaymentMethodBase
Sorted. It maybe is obvious but it took me few days to figure it out. If you are building such plugin like me, in Merchello FastTrack.Ui project there is ResolvePayment.cshtml file which checks Alias property of GatewayMethodUiAttribute model in a switch statement - You will need to add your GatewayMethodUi alias there and link html.Action to your paymentform. Time for testing my worldpay plugin :)
worldpay paymentform.cshtml partial view not showing
I'm almost done with creating WorldPay payment provider plugin for an ecommerce site I'm working on. However, I ran into an issue (I'm sure it is simple) that I struggle now to solve.
I have WorldPay plugin project which has all necessary classes (i.e. provider, methods, controller, etc.). And I created a PaymentForm.cshtml file to capture worldpay customer details.
In
WorldPayCheckoutPaymentGatewayMethodI added the attribute[GatewayMethodUi("WorldPay.WorldPay")]to the class, and the same forWorldPayPaymentControllerand forWorldPayPaymentController.PaymentFormmethod too.The controller got the attribute
[PluginController("MerchelloWorldPay")]and in FastTrackUi I created the area MerchelloWorldPay. Under MerchelloWorldPay I have the necessary js files as well as dialogs folder and WorldPayment folder with PaymentForm.cshtml file.I could add worldpay as a payment gateway with no issues, display it under payment methods option during the checkout process, but not able to show PaymentForm.
Note
WorldPayPaymentControllerinherits fromCheckoutPaymentControllerBaseand
WorldPayCheckoutPaymentGatewayMethodinherits fromRedirectPaymentMethodBaseAny advise?
Sorted. It maybe is obvious but it took me few days to figure it out. If you are building such plugin like me, in Merchello FastTrack.Ui project there is ResolvePayment.cshtml file which checks Alias property of
GatewayMethodUiAttributemodel in a switch statement - You will need to add your GatewayMethodUi alias there and link html.Action to your paymentform. Time for testing my worldpay plugin :)is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.