Skip to content

Commit 8c4b4c4

Browse files
committed
readme changes
1 parent bc12b2a commit 8c4b4c4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,11 +628,11 @@ System.out.println("response: " + response.toString() );
628628
Verify Signature for webhook:
629629

630630
```java
631-
String version = "2";
632-
String stringifiedData = "YourStringifiedObjectData"
633-
String requestTimestamp = "1559902637";
631+
String version = "v2"; // webhook response version should be here
632+
String stringifiedData = "YourStringifiedObjectData" // webhook response should be here
633+
String requestTimestamp = "1559902637"; // webhook response requested_timestamp should be here
634634
String signature = "e9206f9feecccd8f9653a4bdb56ea74531e6528bae8f6de1797aa77dc5235923";
635635
String webhookSecret = "09121ae7614856777fa36d63aca828e0ef14be77fb48fa149e0c0b50fec847a7";
636-
JsonObject response = webhooksService.verifySignature( version, stringifiedData, requestTimestamp, signature, webhookSecret );
637-
System.out.println("response: " + response.toString() );
636+
Boolean response = webhooksService.verifySignature( version, stringifiedData, requestTimestamp, signature, webhookSecret );
637+
System.out.println("response: " + response );
638638
```

0 commit comments

Comments
 (0)