Payment plugin - How to get order total in payment info view

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 10 ans
Hi,

I'm developing a payment plugin, and I need to get the order total in controller's method "public ActionResult PaymentInfo()".
I need the order total to show some options to customer, these options can change acording with the order value, like the number of installments.

Is it possible? How I get the order total?

Thanks
Il y a 10 ans
rcianci wrote:
Hi,

I'm developing a payment plugin, and I need to get the order total in controller's method "public ActionResult PaymentInfo()".
I need the order total to show some options to customer, these options can change acording with the order value, like the number of installments.

Is it possible? How I get the order total?

Thanks


You can always use OrderTotalCalculationService to do the calculation. :D
Il y a 10 ans
Yes, inject IOrderTotalCalculationService
and then _orderTotalCalcService.GetShoppingCartTotal(cart);
but, beware - GetShoppingCartTotal will include the payment additional fee if a method has been selected (e.g. back button, etc.)
Il y a 10 ans
Thanks, problem solved.
Il y a 5 ans
I am not able to achieve this can you please elaborate
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.