@paystack/checkout-js 1.52.0-beta.7 → 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
@@ -20758,6 +20758,7 @@ var Paystack = (function (exports) {
20758
20758
  });
20759
20759
  },
20760
20760
  authenticateCapitecPay: function authenticateCapitecPay(_ref2) {
20761
+ var _this = this;
20761
20762
  var identifierKey = _ref2.identifierKey,
20762
20763
  _ref2$identifierValue = _ref2.identifierValue,
20763
20764
  identifierValue = _ref2$identifierValue === void 0 ? '' : _ref2$identifierValue;
@@ -20772,20 +20773,24 @@ var Paystack = (function (exports) {
20772
20773
  identifierKey: identifierKey,
20773
20774
  identifierValue: trimmedIdentifierValue
20774
20775
  });
20776
+ this.logAttempt(CAPITEC_PAY_PAYMENT_METHOD);
20775
20777
  return CapitecPayAPI.authenticate({
20776
20778
  clientData: clientData,
20777
20779
  deviceFingerprint: this.deviceFingerprint,
20778
20780
  transactionId: this.id,
20779
20781
  publicKey: this.merchant.key
20782
+ }).then(function (response) {
20783
+ _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20784
+ return response;
20780
20785
  });
20781
20786
  },
20782
20787
  requeryCapitecPay: function requeryCapitecPay() {
20783
- var _this = this;
20788
+ var _this2 = this;
20784
20789
  return CapitecPayAPI.requery({
20785
20790
  transactionReference: this.reference,
20786
20791
  publicKey: this.merchant.key
20787
20792
  }).then(function (response) {
20788
- _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20793
+ _this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20789
20794
  return response;
20790
20795
  });
20791
20796
  },
package/es/checkout.js CHANGED
@@ -20755,6 +20755,7 @@ var CapitecPayCharge = {
20755
20755
  });
20756
20756
  },
20757
20757
  authenticateCapitecPay: function authenticateCapitecPay(_ref2) {
20758
+ var _this = this;
20758
20759
  var identifierKey = _ref2.identifierKey,
20759
20760
  _ref2$identifierValue = _ref2.identifierValue,
20760
20761
  identifierValue = _ref2$identifierValue === void 0 ? '' : _ref2$identifierValue;
@@ -20769,20 +20770,24 @@ var CapitecPayCharge = {
20769
20770
  identifierKey: identifierKey,
20770
20771
  identifierValue: trimmedIdentifierValue
20771
20772
  });
20773
+ this.logAttempt(CAPITEC_PAY_PAYMENT_METHOD);
20772
20774
  return CapitecPayAPI.authenticate({
20773
20775
  clientData: clientData,
20774
20776
  deviceFingerprint: this.deviceFingerprint,
20775
20777
  transactionId: this.id,
20776
20778
  publicKey: this.merchant.key
20779
+ }).then(function (response) {
20780
+ _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20781
+ return response;
20777
20782
  });
20778
20783
  },
20779
20784
  requeryCapitecPay: function requeryCapitecPay() {
20780
- var _this = this;
20785
+ var _this2 = this;
20781
20786
  return CapitecPayAPI.requery({
20782
20787
  transactionReference: this.reference,
20783
20788
  publicKey: this.merchant.key
20784
20789
  }).then(function (response) {
20785
- _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20790
+ _this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20786
20791
  return response;
20787
20792
  });
20788
20793
  },
package/lib/checkout.js CHANGED
@@ -20759,6 +20759,7 @@ var CapitecPayCharge = {
20759
20759
  });
20760
20760
  },
20761
20761
  authenticateCapitecPay: function authenticateCapitecPay(_ref2) {
20762
+ var _this = this;
20762
20763
  var identifierKey = _ref2.identifierKey,
20763
20764
  _ref2$identifierValue = _ref2.identifierValue,
20764
20765
  identifierValue = _ref2$identifierValue === void 0 ? '' : _ref2$identifierValue;
@@ -20773,20 +20774,24 @@ var CapitecPayCharge = {
20773
20774
  identifierKey: identifierKey,
20774
20775
  identifierValue: trimmedIdentifierValue
20775
20776
  });
20777
+ this.logAttempt(CAPITEC_PAY_PAYMENT_METHOD);
20776
20778
  return CapitecPayAPI.authenticate({
20777
20779
  clientData: clientData,
20778
20780
  deviceFingerprint: this.deviceFingerprint,
20779
20781
  transactionId: this.id,
20780
20782
  publicKey: this.merchant.key
20783
+ }).then(function (response) {
20784
+ _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20785
+ return response;
20781
20786
  });
20782
20787
  },
20783
20788
  requeryCapitecPay: function requeryCapitecPay() {
20784
- var _this = this;
20789
+ var _this2 = this;
20785
20790
  return CapitecPayAPI.requery({
20786
20791
  transactionReference: this.reference,
20787
20792
  publicKey: this.merchant.key
20788
20793
  }).then(function (response) {
20789
- _this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20794
+ _this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
20790
20795
  return response;
20791
20796
  });
20792
20797
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.52.0-beta.7",
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",