I am trying to receive a webhook via a post request from Stripe Payments. The java method to process it looks like this:
@ResponseBody @RequestMapping( consu
I have been looking for the same answer, so after looking at their own code, here is how they actually do it:
String rawJson = IOUtils.toString(request.getInputStream()); Event event = APIResource.GSON.fromJson(rawJson, Event.class);
APIResource comes from their library (I am using 1.6.5)