@paystack/checkout-js 1.52.0-beta.6 → 1.52.0-beta.8

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/dist/checkout.js CHANGED
@@ -6475,6 +6475,9 @@ var Paystack = (function (exports) {
6475
6475
  if (response.bank) {
6476
6476
  error.bank = response.bank;
6477
6477
  }
6478
+ if (response.retry) {
6479
+ error.retry = response.retry;
6480
+ }
6478
6481
  return error;
6479
6482
  },
6480
6483
  parse: function parse(apiResponse) {
@@ -20755,6 +20758,7 @@ var Paystack = (function (exports) {
20755
20758
  });
20756
20759
  },
20757
20760
  authenticateCapitecPay: function authenticateCapitecPay(_ref2) {
20761
+ var _this = this;
20758
20762
  var identifierKey = _ref2.identifierKey,
20759
20763
  _ref2$identifierValue = _ref2.identifierValue,
20760
20764
  identifierValue = _ref2$identifierValue === void 0 ? '' : _ref2$identifierValue;
@@ -20769,20 +20773,24 @@ var Paystack = (function (exports) {
20769
20773
  identifierKey: identifierKey,
20770
20774
  identifierValue: trimmedIdentifierValue
20771
20775
  });
20776
+ this.logAttempt(CAPITEC_PAY_PAYMENT_METHOD);
20772
20777
  return CapitecPayAPI.authenticate({
20773
20778
  clientData: clientData,
20774
20779
  deviceFingerprint: this.deviceFingerprint,
20775
20780
  transactionId: this.id,
20776
20781
  publicKey: this.merchant.key
20782
+ }).then(function (response) {
20783
+ _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20784
+ return response;
20777
20785
  });
20778
20786
  },
20779
20787
  requeryCapitecPay: function requeryCapitecPay() {
20780
- var _this = this;
20788
+ var _this2 = this;
20781
20789
  return CapitecPayAPI.requery({
20782
20790
  transactionReference: this.reference,
20783
20791
  publicKey: this.merchant.key
20784
20792
  }).then(function (response) {
20785
- _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20793
+ _this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20786
20794
  return response;
20787
20795
  });
20788
20796
  },
package/es/checkout.js CHANGED
@@ -6472,6 +6472,9 @@ var ChargeResponses = {
6472
6472
  if (response.bank) {
6473
6473
  error.bank = response.bank;
6474
6474
  }
6475
+ if (response.retry) {
6476
+ error.retry = response.retry;
6477
+ }
6475
6478
  return error;
6476
6479
  },
6477
6480
  parse: function parse(apiResponse) {
@@ -20752,6 +20755,7 @@ var CapitecPayCharge = {
20752
20755
  });
20753
20756
  },
20754
20757
  authenticateCapitecPay: function authenticateCapitecPay(_ref2) {
20758
+ var _this = this;
20755
20759
  var identifierKey = _ref2.identifierKey,
20756
20760
  _ref2$identifierValue = _ref2.identifierValue,
20757
20761
  identifierValue = _ref2$identifierValue === void 0 ? '' : _ref2$identifierValue;
@@ -20766,20 +20770,24 @@ var CapitecPayCharge = {
20766
20770
  identifierKey: identifierKey,
20767
20771
  identifierValue: trimmedIdentifierValue
20768
20772
  });
20773
+ this.logAttempt(CAPITEC_PAY_PAYMENT_METHOD);
20769
20774
  return CapitecPayAPI.authenticate({
20770
20775
  clientData: clientData,
20771
20776
  deviceFingerprint: this.deviceFingerprint,
20772
20777
  transactionId: this.id,
20773
20778
  publicKey: this.merchant.key
20779
+ }).then(function (response) {
20780
+ _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20781
+ return response;
20774
20782
  });
20775
20783
  },
20776
20784
  requeryCapitecPay: function requeryCapitecPay() {
20777
- var _this = this;
20785
+ var _this2 = this;
20778
20786
  return CapitecPayAPI.requery({
20779
20787
  transactionReference: this.reference,
20780
20788
  publicKey: this.merchant.key
20781
20789
  }).then(function (response) {
20782
- _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20790
+ _this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20783
20791
  return response;
20784
20792
  });
20785
20793
  },
package/lib/checkout.js CHANGED
@@ -6476,6 +6476,9 @@ var ChargeResponses = {
6476
6476
  if (response.bank) {
6477
6477
  error.bank = response.bank;
6478
6478
  }
6479
+ if (response.retry) {
6480
+ error.retry = response.retry;
6481
+ }
6479
6482
  return error;
6480
6483
  },
6481
6484
  parse: function parse(apiResponse) {
@@ -20756,6 +20759,7 @@ var CapitecPayCharge = {
20756
20759
  });
20757
20760
  },
20758
20761
  authenticateCapitecPay: function authenticateCapitecPay(_ref2) {
20762
+ var _this = this;
20759
20763
  var identifierKey = _ref2.identifierKey,
20760
20764
  _ref2$identifierValue = _ref2.identifierValue,
20761
20765
  identifierValue = _ref2$identifierValue === void 0 ? '' : _ref2$identifierValue;
@@ -20770,20 +20774,24 @@ var CapitecPayCharge = {
20770
20774
  identifierKey: identifierKey,
20771
20775
  identifierValue: trimmedIdentifierValue
20772
20776
  });
20777
+ this.logAttempt(CAPITEC_PAY_PAYMENT_METHOD);
20773
20778
  return CapitecPayAPI.authenticate({
20774
20779
  clientData: clientData,
20775
20780
  deviceFingerprint: this.deviceFingerprint,
20776
20781
  transactionId: this.id,
20777
20782
  publicKey: this.merchant.key
20783
+ }).then(function (response) {
20784
+ _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20785
+ return response;
20778
20786
  });
20779
20787
  },
20780
20788
  requeryCapitecPay: function requeryCapitecPay() {
20781
- var _this = this;
20789
+ var _this2 = this;
20782
20790
  return CapitecPayAPI.requery({
20783
20791
  transactionReference: this.reference,
20784
20792
  publicKey: this.merchant.key
20785
20793
  }).then(function (response) {
20786
- _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20794
+ _this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20787
20795
  return response;
20788
20796
  });
20789
20797
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.52.0-beta.6",
3
+ "version": "1.52.0-beta.8",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",