As Ankit said above you are really a life saver
Just a small question, I checked the CheckoutServiceImpl.class and found the method performCheckout()
This method is having two parameters:
1.Order order
2.final Map<PaymentInfo, Referenced> payments
I know Order will be the instance of my cart like CartState.getCart()
But what about the Map<PaymentInfo, Referenced>??
I have changed my CheckoutController like this:
Code: Select all
public String completeCheckout(HttpServletRequest request, HttpServletResponse response, Model model,
@ModelAttribute("billingInfoForm") BillingInfoForm billingForm,
BindingResult result) throws CheckoutException, PricingException, ServiceException {
CheckoutResponse checkoutResponse = checkoutService.performCheckout(CartState.getCart(), CartState.getCart().getPaymentInfos());
}
But I am getting this error
The method performCheckout(Order, Map<PaymentInfo,Referenced>) in the type CheckoutService is not applicable for the arguments (Order, List<PaymentInfo>)
If you can help me than i will be more than obliged.
Thanks & Regards
Hitesh Singla