Skip to content

Commit

Permalink
1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Osiris-Team committed Mar 19, 2021
1 parent dbee50b commit 392c5ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/osiris/payhook/WebhookEvent.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.osiris.payhook;

import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.osiris.payhook.exceptions.ParseBodyException;

Expand All @@ -24,7 +25,7 @@ public WebhookEvent(String validWebHookId, List<String> validTypesList, WebhookE
this.validTypesList = validTypesList;
this.header = header;
this.body = body;
this.bodyString = body.getAsString();
this.bodyString = new Gson().toJson(body);
}

/**
Expand Down

0 comments on commit 392c5ef

Please sign in to comment.