@paystack/checkout-js 1.52.0-beta.7 → 1.52.0-beta.9
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 +8 -2
- package/es/checkout.js +8 -2
- package/lib/checkout.js +8 -2
- package/package.json +1 -1
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
|
|
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
|
-
|
|
20793
|
+
_this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
|
|
20789
20794
|
return response;
|
|
20790
20795
|
});
|
|
20791
20796
|
},
|
|
@@ -22444,6 +22449,7 @@ var Paystack = (function (exports) {
|
|
|
22444
22449
|
this.amount = data.amount;
|
|
22445
22450
|
this.currency = data.currency;
|
|
22446
22451
|
this.metadata = data.metadata || {};
|
|
22452
|
+
this.cancel_action = data.cancel_action || null;
|
|
22447
22453
|
this.customer = data.customer;
|
|
22448
22454
|
this.channels = data.channels || ['card'];
|
|
22449
22455
|
this.isListening = false;
|
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
|
|
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
|
-
|
|
20790
|
+
_this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
|
|
20786
20791
|
return response;
|
|
20787
20792
|
});
|
|
20788
20793
|
},
|
|
@@ -22441,6 +22446,7 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
|
|
|
22441
22446
|
this.amount = data.amount;
|
|
22442
22447
|
this.currency = data.currency;
|
|
22443
22448
|
this.metadata = data.metadata || {};
|
|
22449
|
+
this.cancel_action = data.cancel_action || null;
|
|
22444
22450
|
this.customer = data.customer;
|
|
22445
22451
|
this.channels = data.channels || ['card'];
|
|
22446
22452
|
this.isListening = false;
|
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
|
|
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
|
-
|
|
20794
|
+
_this2.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
|
|
20790
20795
|
return response;
|
|
20791
20796
|
});
|
|
20792
20797
|
},
|
|
@@ -22445,6 +22450,7 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
|
|
|
22445
22450
|
this.amount = data.amount;
|
|
22446
22451
|
this.currency = data.currency;
|
|
22447
22452
|
this.metadata = data.metadata || {};
|
|
22453
|
+
this.cancel_action = data.cancel_action || null;
|
|
22448
22454
|
this.customer = data.customer;
|
|
22449
22455
|
this.channels = data.channels || ['card'];
|
|
22450
22456
|
this.isListening = false;
|