@RequestMapping(value = "/webhook",method = RequestMethod.POST, produces = "application/json")
public void webhook(HttpServletRequest request,HttpServletResponse response) throws StripeException, IOException {
System.out.println("------------------------------------");
System.out.println("catch!webhook");
String result = request.getReader().lines().collect(Collectors.joining("\r\n"));
System.out.println(result);
}
カテゴリー