@Test public void shouldRenderIframePageForChallenge() { when(worldpayAddonEndpointServiceMock.getChallengeIframe3dSecureFlex()).thenReturn(THREEDS_FLEX_CHALLENGE_IFRAME); final String result = testObj.getChallengeIframeContent(modelMock); assertThat(result).isEqualTo(THREEDS_FLEX_CHALLENGE_IFRAME); }
@GetMapping(value = "/challengeIframe") @RequireHardLogIn public String getChallengeIframeContent(final Model model) { return worldpayAddonEndpointService.getChallengeIframe3dSecureFlex(); }
WorldpayCseCheckoutStepController extends AbstractWorldpayDirectCheckoutStepController { @GetMapping(value = "/challengeIframe") @RequireHardLogIn public String getChallengeIframeContent(final Model model) { return worldpayAddonEndpointService.getChallengeIframe3dSecureFlex(); } }
WorldpayCseCheckoutStepController extends AbstractWorldpayDirectCheckoutStepController { @GetMapping(value = "/challengeIframe") @RequireHardLogIn public String getChallengeIframeContent(final Model model) { return worldpayAddonEndpointService.getChallengeIframe3dSecureFlex(); }  }
WorldpayCseCheckoutStepController extends AbstractWorldpayDirectCheckoutStepController { @GetMapping(value = "/challengeIframe") @RequireHardLogIn public String getChallengeIframeContent(final Model model) { return worldpayAddonEndpointService.getChallengeIframe3dSecureFlex(); }  @RequestMapping(value = {"/cse-data", "/place-order"}, method = GET) @RequireHardLogIn String getCseDataPage(final Model model); @RequestMapping(value = "/add-payment-address", method = POST) @RequireHardLogIn String addPaymentAddress(final Model model, @Valid final PaymentDetailsForm paymentDetailsForm, final BindingResult bindingResult, final RedirectAttributes redirectAttrs); @RequestMapping(value = "/place-order", method = POST) @RequireHardLogIn String addCseData(final HttpServletRequest request, final Model model, @Valid final CSEPaymentForm csePaymentForm, final BindingResult bindingResult, final HttpServletResponse response); @GetMapping(value = "/DDCIframe") @RequireHardLogIn String getDDCIframeContent(final Model model); @GetMapping(value = "/challengeIframe") @RequireHardLogIn String getChallengeIframeContent(final Model model); }
WorldpayCseCheckoutStepController extends AbstractWorldpayDirectCheckoutStepController { @GetMapping(value = "/challengeIframe") @RequireHardLogIn public String getChallengeIframeContent(final Model model) { return worldpayAddonEndpointService.getChallengeIframe3dSecureFlex(); }  @RequestMapping(value = {"/cse-data", "/place-order"}, method = GET) @RequireHardLogIn String getCseDataPage(final Model model); @RequestMapping(value = "/add-payment-address", method = POST) @RequireHardLogIn String addPaymentAddress(final Model model, @Valid final PaymentDetailsForm paymentDetailsForm, final BindingResult bindingResult, final RedirectAttributes redirectAttrs); @RequestMapping(value = "/place-order", method = POST) @RequireHardLogIn String addCseData(final HttpServletRequest request, final Model model, @Valid final CSEPaymentForm csePaymentForm, final BindingResult bindingResult, final HttpServletResponse response); @GetMapping(value = "/DDCIframe") @RequireHardLogIn String getDDCIframeContent(final Model model); @GetMapping(value = "/challengeIframe") @RequireHardLogIn String getChallengeIframeContent(final Model model);  }