@paystack/checkout-js 1.50.0-dev.4 → 1.50.0-dev.6
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 +6 -11
- package/es/checkout.js +6 -11
- package/lib/checkout.js +6 -11
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -21718,23 +21718,19 @@ var Paystack = (function (exports) {
|
|
|
21718
21718
|
});
|
|
21719
21719
|
},
|
|
21720
21720
|
requery: function requery(_ref2) {
|
|
21721
|
-
var
|
|
21721
|
+
var transactionReference = _ref2.transactionReference,
|
|
21722
21722
|
publicKey = _ref2.publicKey;
|
|
21723
|
-
var url = new URL(
|
|
21723
|
+
var url = new URL("capitec-pay/requery/".concat(transactionReference), configToUse.paystackApiUrl).toString();
|
|
21724
21724
|
var language = getLanguage();
|
|
21725
21725
|
var headers = _objectSpread2({
|
|
21726
21726
|
Authorization: "Bearer ".concat(publicKey)
|
|
21727
21727
|
}, language && {
|
|
21728
21728
|
'Accept-Language': language
|
|
21729
21729
|
});
|
|
21730
|
-
var params = {
|
|
21731
|
-
transaction_id: transactionId
|
|
21732
|
-
};
|
|
21733
21730
|
return axiosInstance.get(url, {
|
|
21734
|
-
headers: headers
|
|
21735
|
-
params: params
|
|
21731
|
+
headers: headers
|
|
21736
21732
|
}).then(function (response) {
|
|
21737
|
-
return ChargeResponses.parse(response);
|
|
21733
|
+
return ChargeResponses.parse(response.data);
|
|
21738
21734
|
});
|
|
21739
21735
|
}
|
|
21740
21736
|
};
|
|
@@ -21776,7 +21772,7 @@ var Paystack = (function (exports) {
|
|
|
21776
21772
|
requeryCapitecPay: function requeryCapitecPay() {
|
|
21777
21773
|
var _this = this;
|
|
21778
21774
|
return CapitecPayAPI.requery({
|
|
21779
|
-
|
|
21775
|
+
transactionReference: this.reference,
|
|
21780
21776
|
publicKey: this.merchant.key
|
|
21781
21777
|
}).then(function (response) {
|
|
21782
21778
|
_this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
|
|
@@ -21784,10 +21780,9 @@ var Paystack = (function (exports) {
|
|
|
21784
21780
|
});
|
|
21785
21781
|
},
|
|
21786
21782
|
listenForCapitecPayCharge: function listenForCapitecPayCharge(callback) {
|
|
21787
|
-
var pusherChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
21788
21783
|
var listenerOptions = {
|
|
21789
21784
|
paymentMethod: CAPITEC_PAY_PAYMENT_METHOD,
|
|
21790
|
-
channel:
|
|
21785
|
+
channel: "CAPITECPAY_".concat(this.id)
|
|
21791
21786
|
};
|
|
21792
21787
|
return this.listenForCharge(listenerOptions, callback);
|
|
21793
21788
|
}
|
package/es/checkout.js
CHANGED
|
@@ -21715,23 +21715,19 @@ var CapitecPayAPI = {
|
|
|
21715
21715
|
});
|
|
21716
21716
|
},
|
|
21717
21717
|
requery: function requery(_ref2) {
|
|
21718
|
-
var
|
|
21718
|
+
var transactionReference = _ref2.transactionReference,
|
|
21719
21719
|
publicKey = _ref2.publicKey;
|
|
21720
|
-
var url = new URL(
|
|
21720
|
+
var url = new URL("capitec-pay/requery/".concat(transactionReference), configToUse.paystackApiUrl).toString();
|
|
21721
21721
|
var language = getLanguage();
|
|
21722
21722
|
var headers = _objectSpread2({
|
|
21723
21723
|
Authorization: "Bearer ".concat(publicKey)
|
|
21724
21724
|
}, language && {
|
|
21725
21725
|
'Accept-Language': language
|
|
21726
21726
|
});
|
|
21727
|
-
var params = {
|
|
21728
|
-
transaction_id: transactionId
|
|
21729
|
-
};
|
|
21730
21727
|
return axiosInstance.get(url, {
|
|
21731
|
-
headers: headers
|
|
21732
|
-
params: params
|
|
21728
|
+
headers: headers
|
|
21733
21729
|
}).then(function (response) {
|
|
21734
|
-
return ChargeResponses.parse(response);
|
|
21730
|
+
return ChargeResponses.parse(response.data);
|
|
21735
21731
|
});
|
|
21736
21732
|
}
|
|
21737
21733
|
};
|
|
@@ -21773,7 +21769,7 @@ var CapitecPayCharge = {
|
|
|
21773
21769
|
requeryCapitecPay: function requeryCapitecPay() {
|
|
21774
21770
|
var _this = this;
|
|
21775
21771
|
return CapitecPayAPI.requery({
|
|
21776
|
-
|
|
21772
|
+
transactionReference: this.reference,
|
|
21777
21773
|
publicKey: this.merchant.key
|
|
21778
21774
|
}).then(function (response) {
|
|
21779
21775
|
_this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
|
|
@@ -21781,10 +21777,9 @@ var CapitecPayCharge = {
|
|
|
21781
21777
|
});
|
|
21782
21778
|
},
|
|
21783
21779
|
listenForCapitecPayCharge: function listenForCapitecPayCharge(callback) {
|
|
21784
|
-
var pusherChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
21785
21780
|
var listenerOptions = {
|
|
21786
21781
|
paymentMethod: CAPITEC_PAY_PAYMENT_METHOD,
|
|
21787
|
-
channel:
|
|
21782
|
+
channel: "CAPITECPAY_".concat(this.id)
|
|
21788
21783
|
};
|
|
21789
21784
|
return this.listenForCharge(listenerOptions, callback);
|
|
21790
21785
|
}
|
package/lib/checkout.js
CHANGED
|
@@ -21719,23 +21719,19 @@ var CapitecPayAPI = {
|
|
|
21719
21719
|
});
|
|
21720
21720
|
},
|
|
21721
21721
|
requery: function requery(_ref2) {
|
|
21722
|
-
var
|
|
21722
|
+
var transactionReference = _ref2.transactionReference,
|
|
21723
21723
|
publicKey = _ref2.publicKey;
|
|
21724
|
-
var url = new URL(
|
|
21724
|
+
var url = new URL("capitec-pay/requery/".concat(transactionReference), configToUse.paystackApiUrl).toString();
|
|
21725
21725
|
var language = getLanguage();
|
|
21726
21726
|
var headers = _objectSpread2({
|
|
21727
21727
|
Authorization: "Bearer ".concat(publicKey)
|
|
21728
21728
|
}, language && {
|
|
21729
21729
|
'Accept-Language': language
|
|
21730
21730
|
});
|
|
21731
|
-
var params = {
|
|
21732
|
-
transaction_id: transactionId
|
|
21733
|
-
};
|
|
21734
21731
|
return axiosInstance.get(url, {
|
|
21735
|
-
headers: headers
|
|
21736
|
-
params: params
|
|
21732
|
+
headers: headers
|
|
21737
21733
|
}).then(function (response) {
|
|
21738
|
-
return ChargeResponses.parse(response);
|
|
21734
|
+
return ChargeResponses.parse(response.data);
|
|
21739
21735
|
});
|
|
21740
21736
|
}
|
|
21741
21737
|
};
|
|
@@ -21777,7 +21773,7 @@ var CapitecPayCharge = {
|
|
|
21777
21773
|
requeryCapitecPay: function requeryCapitecPay() {
|
|
21778
21774
|
var _this = this;
|
|
21779
21775
|
return CapitecPayAPI.requery({
|
|
21780
|
-
|
|
21776
|
+
transactionReference: this.reference,
|
|
21781
21777
|
publicKey: this.merchant.key
|
|
21782
21778
|
}).then(function (response) {
|
|
21783
21779
|
_this.logAPIResponse(response, CAPITEC_PAY_PAYMENT_METHOD);
|
|
@@ -21785,10 +21781,9 @@ var CapitecPayCharge = {
|
|
|
21785
21781
|
});
|
|
21786
21782
|
},
|
|
21787
21783
|
listenForCapitecPayCharge: function listenForCapitecPayCharge(callback) {
|
|
21788
|
-
var pusherChannel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
21789
21784
|
var listenerOptions = {
|
|
21790
21785
|
paymentMethod: CAPITEC_PAY_PAYMENT_METHOD,
|
|
21791
|
-
channel:
|
|
21786
|
+
channel: "CAPITECPAY_".concat(this.id)
|
|
21792
21787
|
};
|
|
21793
21788
|
return this.listenForCharge(listenerOptions, callback);
|
|
21794
21789
|
}
|