@houlak/plexo-sdk 0.1.44 → 0.1.45

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.
@@ -115,7 +115,7 @@ var unwrapCallback = function (fingerprint, response) { return __awaiter(void 0,
115
115
  case 3:
116
116
  certificate = new crypto_1.X509Certificate(Buffer.from(plexoResponse.Object.Object.Response.Key, 'base64'));
117
117
  key = certificate.publicKey.export({ format: 'pem', type: 'pkcs1' });
118
- logger_lib_1.default.info(response.object, 'Objeto de respuesta de Plexo');
118
+ logger_lib_1.default.info(response, 'Callback de Plexo');
119
119
  canonizedObject = signatureUtils_1.signatureUtils.canonizeJson(response.object, [
120
120
  'CreditLimits',
121
121
  'creditLimits',
@@ -135,6 +135,7 @@ var unwrapCallback = function (fingerprint, response) { return __awaiter(void 0,
135
135
  resultCode: verifySignature ? __1.ResultCodes.Ok : __1.ResultCodes.InvalidSignature,
136
136
  errorMessage: verifySignature ? 'Success' : 'Signature do not match',
137
137
  };
138
+ logger_lib_1.default.info(serverResponse, 'Server response, end of unwrap');
138
139
  return [2 /*return*/, serverResponse];
139
140
  }
140
141
  });
@@ -68,6 +68,6 @@ var stringifyAmountsWithFloats = function (object) {
68
68
  TaxedAmount: 'float',
69
69
  VATAmount: 'float',
70
70
  ReturnAmount: 'float',
71
- }, 1)(object, null, 0);
71
+ }, 2)(object, null, 0);
72
72
  };
73
73
  exports.stringifyAmountsWithFloats = stringifyAmountsWithFloats;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@houlak/plexo-sdk",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "Node SDK for Plexo payment services",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",