@paystack/checkout-js 1.24.0-dev.7 → 1.24.0

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/es/checkout.js CHANGED
@@ -11514,7 +11514,7 @@ var TransactionAPI = {
11514
11514
  return response.data;
11515
11515
  });
11516
11516
  },
11517
- verifyTransactionStatus: function verifyTransactionStatus(_ref2) {
11517
+ verifyStatus: function verifyStatus(_ref2) {
11518
11518
  var reference = _ref2.reference,
11519
11519
  publicKey = _ref2.publicKey;
11520
11520
  var url = new URL("transaction/verify_status/".concat(reference), configToUse.paystackApiUrl).toString();
@@ -20574,6 +20574,16 @@ var TransactionInstance = /*#__PURE__*/function () {
20574
20574
  transactionId: this.id
20575
20575
  });
20576
20576
  }
20577
+ }, {
20578
+ key: "verifyStatus",
20579
+ value: function verifyStatus() {
20580
+ return TransactionAPI.verifyStatus({
20581
+ reference: this.reference,
20582
+ publicKey: this.merchant.key
20583
+ }).then(function (response) {
20584
+ return response && response.data;
20585
+ });
20586
+ }
20577
20587
  }]);
20578
20588
 
20579
20589
  return TransactionInstance;
@@ -20703,14 +20713,6 @@ var Transaction = {
20703
20713
  }
20704
20714
  }, _callee4);
20705
20715
  }))();
20706
- },
20707
- verifyTransactionStatus: function verifyTransactionStatus(reference, publicKey) {
20708
- return TransactionAPI.verifyTransactionStatus({
20709
- reference: reference,
20710
- publicKey: publicKey
20711
- }).then(function (response) {
20712
- return response && response.data;
20713
- });
20714
20716
  }
20715
20717
  };
20716
20718
 
@@ -20795,21 +20797,6 @@ var ToolkitAPI = {
20795
20797
  resolvedCardBins[bin] = data;
20796
20798
  return data;
20797
20799
  });
20798
- },
20799
- resolveIPAddress: function resolveIPAddress(ipAddress) {
20800
- var url = new URL("decision/resolve_ip/".concat(ipAddress), configToUse.paystackApiUrl).toString();
20801
- var language = getLanguage();
20802
-
20803
- var headers = _objectSpread2({}, language && {
20804
- 'Accept-Language': language
20805
- });
20806
-
20807
- return axiosInstance.get(url, {
20808
- headers: headers
20809
- }).then(function (_ref2) {
20810
- var data = _ref2.data;
20811
- return data;
20812
- });
20813
20800
  }
20814
20801
  };
20815
20802
 
@@ -20875,11 +20862,6 @@ var Toolkit = /*#__PURE__*/function () {
20875
20862
  value: function resolveCardBin(bin) {
20876
20863
  return ToolkitAPI.resolveCardBin(bin);
20877
20864
  }
20878
- }, {
20879
- key: "resolveIPAddress",
20880
- value: function resolveIPAddress(ipAddress) {
20881
- return ToolkitAPI.resolveIPAddress(ipAddress);
20882
- }
20883
20865
  }]);
20884
20866
 
20885
20867
  return Toolkit;
package/lib/checkout.js CHANGED
@@ -11518,7 +11518,7 @@ var TransactionAPI = {
11518
11518
  return response.data;
11519
11519
  });
11520
11520
  },
11521
- verifyTransactionStatus: function verifyTransactionStatus(_ref2) {
11521
+ verifyStatus: function verifyStatus(_ref2) {
11522
11522
  var reference = _ref2.reference,
11523
11523
  publicKey = _ref2.publicKey;
11524
11524
  var url = new URL("transaction/verify_status/".concat(reference), configToUse.paystackApiUrl).toString();
@@ -20578,6 +20578,16 @@ var TransactionInstance = /*#__PURE__*/function () {
20578
20578
  transactionId: this.id
20579
20579
  });
20580
20580
  }
20581
+ }, {
20582
+ key: "verifyStatus",
20583
+ value: function verifyStatus() {
20584
+ return TransactionAPI.verifyStatus({
20585
+ reference: this.reference,
20586
+ publicKey: this.merchant.key
20587
+ }).then(function (response) {
20588
+ return response && response.data;
20589
+ });
20590
+ }
20581
20591
  }]);
20582
20592
 
20583
20593
  return TransactionInstance;
@@ -20707,14 +20717,6 @@ var Transaction = {
20707
20717
  }
20708
20718
  }, _callee4);
20709
20719
  }))();
20710
- },
20711
- verifyTransactionStatus: function verifyTransactionStatus(reference, publicKey) {
20712
- return TransactionAPI.verifyTransactionStatus({
20713
- reference: reference,
20714
- publicKey: publicKey
20715
- }).then(function (response) {
20716
- return response && response.data;
20717
- });
20718
20720
  }
20719
20721
  };
20720
20722
 
@@ -20799,21 +20801,6 @@ var ToolkitAPI = {
20799
20801
  resolvedCardBins[bin] = data;
20800
20802
  return data;
20801
20803
  });
20802
- },
20803
- resolveIPAddress: function resolveIPAddress(ipAddress) {
20804
- var url = new URL("decision/resolve_ip/".concat(ipAddress), configToUse.paystackApiUrl).toString();
20805
- var language = getLanguage();
20806
-
20807
- var headers = _objectSpread2({}, language && {
20808
- 'Accept-Language': language
20809
- });
20810
-
20811
- return axiosInstance.get(url, {
20812
- headers: headers
20813
- }).then(function (_ref2) {
20814
- var data = _ref2.data;
20815
- return data;
20816
- });
20817
20804
  }
20818
20805
  };
20819
20806
 
@@ -20879,11 +20866,6 @@ var Toolkit = /*#__PURE__*/function () {
20879
20866
  value: function resolveCardBin(bin) {
20880
20867
  return ToolkitAPI.resolveCardBin(bin);
20881
20868
  }
20882
- }, {
20883
- key: "resolveIPAddress",
20884
- value: function resolveIPAddress(ipAddress) {
20885
- return ToolkitAPI.resolveIPAddress(ipAddress);
20886
- }
20887
20869
  }]);
20888
20870
 
20889
20871
  return Toolkit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.24.0-dev.7",
3
+ "version": "1.24.0",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",