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
Here's what I did:
The Java method still takes in the Event as a json String. Then I used Stripe's custom gson adapter and got the Event with:
Event event = Event.gson.fromJson(stripeJsonEvent, Event.class);
Where stripeJsonEvent is the string of json taken in by the webhook endpoint.