package com.board.gd.payment;

import com.board.gd.response.ServerResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by godong9 on 2017. 5. 14..
 */

@Slf4j
@RestController
public class PaymentController {
    @GetMapping("/payment/success")
    public ServerResponse getPaymentSuccess(HttpServletRequest param) {
        log.info(param.toString());
        return ServerResponse.success();
    }

    @GetMapping("/payment/cancel")
    public ServerResponse getPaymentCancel(HttpServletRequest param) {
        log.info(param.toString());
        return ServerResponse.success();
    }

    @GetMapping("/payment/callback")
    public ServerResponse getPaymentCallback(HttpServletRequest param) {
        log.info(param.toString());
        return ServerResponse.success();
    }

}

@@ -497,33 +497,150 @@
     
-log.info(param.toString()
+param.getParameterMap().forEach((s, strings) -%3E %7B%0A            log.info(%22Key: %7B%7D%22, s);%0A            log.info(%22Value: %7B%7D%22, strings%5B0%5D);%0A        %7D
 );%0A 
@@ -804,33 +804,150 @@
     
-log.info(param.toString()
+param.getParameterMap().forEach((s, strings) -%3E %7B%0A            log.info(%22Key: %7B%7D%22, s);%0A            log.info(%22Value: %7B%7D%22, strings%5B0%5D);%0A        %7D
 );%0A 
@@ -1115,33 +1115,150 @@
     
-log.info(param.toString()
+param.getParameterMap().forEach((s, strings) -%3E %7B%0A            log.info(%22Key: %7B%7D%22, s);%0A            log.info(%22Value: %7B%7D%22, strings%5B0%5D);%0A        %7D
 );%0A 

Update PaymentController