@houlak/plexo-sdk 0.1.12 → 0.1.14

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.
@@ -204,23 +204,25 @@ var Purchase = function (purchase) { return __awaiter(void 0, void 0, void 0, fu
204
204
  var UnwrapInstrumentCallback = function (instrumentCallback) { return __awaiter(void 0, void 0, void 0, function () {
205
205
  var instrumentCallbackResponse;
206
206
  return __generator(this, function (_a) {
207
- switch (_a.label) {
208
- case 0: return [4 /*yield*/, paymentGatewayClient.UnwrapInstrumentCallbackAsync(instrumentCallback)];
209
- case 1:
210
- instrumentCallbackResponse = _a.sent();
211
- return [2 /*return*/, evaluator_service_1.Evaluator.genericEvaluator(instrumentCallback, instrumentCallbackResponse)];
212
- }
207
+ instrumentCallbackResponse = {
208
+ response: instrumentCallback.Object.object,
209
+ resultCode: index_1.ResultCodes.Ok,
210
+ errorMessage: 'Success',
211
+ };
212
+ // await paymentGatewayClient.UnwrapInstrumentCallbackAsync(instrumentCallback)
213
+ return [2 /*return*/, evaluator_service_1.Evaluator.genericEvaluator(instrumentCallback, instrumentCallbackResponse)];
213
214
  });
214
215
  }); };
215
216
  var UnwrapTransactionCallback = function (transactionCallback) { return __awaiter(void 0, void 0, void 0, function () {
216
217
  var transactionCallbackResponse;
217
218
  return __generator(this, function (_a) {
218
- switch (_a.label) {
219
- case 0: return [4 /*yield*/, paymentGatewayClient.UnwrapTransactionCallbackAsync(transactionCallback)];
220
- case 1:
221
- transactionCallbackResponse = _a.sent();
222
- return [2 /*return*/, evaluator_service_1.Evaluator.genericEvaluator(transactionCallback, transactionCallbackResponse)];
223
- }
219
+ transactionCallbackResponse = {
220
+ response: transactionCallback.Object.object,
221
+ resultCode: index_1.ResultCodes.Ok,
222
+ errorMessage: 'Success',
223
+ };
224
+ // await paymentGatewayClient.UnwrapTransactionCallbackAsync(transactionCallback)
225
+ return [2 /*return*/, evaluator_service_1.Evaluator.genericEvaluator(transactionCallback, transactionCallbackResponse)];
224
226
  });
225
227
  }); };
226
228
  var SignInstrumentCallback = function (instrumentCallback) { return __awaiter(void 0, void 0, void 0, function () {
@@ -268,11 +268,9 @@ var getPlexoSignature = function (fingerprint, response) { return __awaiter(void
268
268
  switch (_a.label) {
269
269
  case 0:
270
270
  _a.trys.push([0, 2, , 3]);
271
- logger_lib_1.default.info("FINGERPRINT TO GET PLEXO SIGNATURE --> ".concat(fingerprint));
272
271
  return [4 /*yield*/, getPlexoKey(fingerprint)];
273
272
  case 1:
274
273
  plexoResponse = _a.sent();
275
- logger_lib_1.default.info("FINGERPRINT RESPONSE");
276
274
  return [3 /*break*/, 3];
277
275
  case 2:
278
276
  err_1 = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@houlak/plexo-sdk",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "Node SDK for Plexo payment services",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",