Skip to content

Commit

Permalink
1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Osiris-Team committed Mar 19, 2021
1 parent 392c5ef commit 29bd969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.osiris.payhook</groupId>
<artifactId>PayHook</artifactId>
<version>1.0</version>
<version>1.2</version>
<packaging>jar</packaging>

<name>PayHook</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/osiris/payhook/PayHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public WebhookEventHeader parseAndGetHeader(Map<String, String> headerAsMap) thr
*/
public JsonObject parseAndGetBody(String bodyString) throws ParseBodyException {
try{
return new Gson().fromJson(bodyString, JsonObject.class);
return JsonParser.parseString(bodyString).getAsJsonObject();
} catch (Exception e) {
throw new ParseBodyException(e.getMessage());
}
Expand Down

0 comments on commit 29bd969

Please sign in to comment.