Skip to content

Commit

Permalink
AD-337 Add PayPal Express Button with Frontend Logic and API Calls to…
Browse files Browse the repository at this point in the history
… CMS Components on PDP and Cart Pages - PR fixes
  • Loading branch information
pjaneta committed Jan 28, 2025
1 parent e5d9fc5 commit b907ba4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

@Controller
@RequestMapping("/express-checkout/paypal/")
public class AdyenPayPalExpressCheckoutController extends AdyenExpressCheckoutControllerBase {
private static final Logger LOG = Logger.getLogger(AdyenApplePayExpressCheckoutController.class);
public class AdyenPayPalExpressCheckoutController extends AdyenExpressCheckoutControllerBase {
private static final Logger LOG = Logger.getLogger(AdyenPayPalExpressCheckoutController.class);

@Autowired
private AdyenPayPalExpressCheckoutFacade adyenPayPalExpressCheckoutFacade;
Expand Down Expand Up @@ -59,7 +59,7 @@ public ResponseEntity onSubmitPDP(final HttpServletRequest request, final HttpSe
LOG.error(e.getError());
LOG.error(e.getMessage());

return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST);
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
}

}
Expand All @@ -81,7 +81,7 @@ public ResponseEntity onSubmitCart(final HttpServletRequest request, final HttpS
LOG.error(e.getError());
LOG.error(e.getMessage());

return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST);
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,9 @@
public class DefaultAdyenPayPalExpressCheckoutFacade extends DefaultAdyenExpressCheckoutFacade implements AdyenPayPalExpressCheckoutFacade {
private static final Logger LOG = Logger.getLogger(DefaultAdyenPayPalExpressCheckoutFacade.class);

// private ProductService productService;
// private CartFactory cartFactory;
// private CartService cartService;
// private ModelService modelService;
private CalculationService calculationService;
// private AdyenCheckoutFacade adyenCheckoutFacade;
// private UserService userService;
private BaseSiteService baseSiteService;
// private CommerceCartService commerceCartService;
// private DeliveryModeService deliveryModeService;
// private SessionService sessionService;



@Override
Expand Down

0 comments on commit b907ba4

Please sign in to comment.