@yosle/tropipayjs 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -668,10 +668,7 @@ class ServerSideUtils {
668
668
  .createHash("sha256")
669
669
  .update(bankOrderCode +
670
670
  credentials.clientId +
671
- crypto__namespace
672
- .createHash("sha1")
673
- .update(credentials.clientSecret)
674
- .digest("hex") +
671
+ credentials.clientSecret +
675
672
  originalCurrencyAmount)
676
673
  .digest("hex");
677
674
  return localSignature === signature;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yosle/tropipayjs",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Javascript / Typescript SDK for the Tropipay API",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,6 @@ import * as crypto from "crypto";
2
2
  import { Tropipay } from "../api/TropipayAPI";
3
3
  import { AxiosError, AxiosResponse } from "axios";
4
4
 
5
-
6
5
  export class ServerSideUtils {
7
6
  private tropipay: Tropipay;
8
7
  constructor(tropipayInstance: Tropipay) {
@@ -33,10 +32,7 @@ export class ServerSideUtils {
33
32
  .update(
34
33
  bankOrderCode +
35
34
  credentials.clientId +
36
- crypto
37
- .createHash("sha1")
38
- .update(credentials.clientSecret)
39
- .digest("hex") +
35
+ credentials.clientSecret +
40
36
  originalCurrencyAmount
41
37
  )
42
38
  .digest("hex");