@paystack/checkout-js 1.24.0-dev.2 → 1.24.0-dev.4

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
@@ -11516,6 +11516,24 @@ var Paystack = (function (exports) {
11516
11516
  }).then(function (response) {
11517
11517
  return response.data;
11518
11518
  });
11519
+ },
11520
+ verifyTransactionStatus: function verifyTransactionStatus(_ref2) {
11521
+ var reference = _ref2.reference,
11522
+ publicKey = _ref2.publicKey;
11523
+ var url = new URL("transaction/verify_status/".concat(reference), configToUse.paystackApiUrl).toString();
11524
+ var language = getLanguage();
11525
+
11526
+ var headers = _objectSpread2({
11527
+ Authorization: "Bearer ".concat(publicKey)
11528
+ }, language && {
11529
+ 'Accept-Language': language
11530
+ });
11531
+
11532
+ return axiosInstance.get(url, {
11533
+ headers: headers
11534
+ }).then(function (response) {
11535
+ return ChargeResponses.parse(response.data);
11536
+ });
11519
11537
  }
11520
11538
  };
11521
11539
 
@@ -20687,6 +20705,12 @@ var Paystack = (function (exports) {
20687
20705
  }
20688
20706
  }, _callee4);
20689
20707
  }))();
20708
+ },
20709
+ verifyTransactionStatus: function verifyTransactionStatus(reference, publicKey) {
20710
+ return TransactionAPI.verifyTransactionStatus({
20711
+ reference: reference,
20712
+ publicKey: publicKey
20713
+ });
20690
20714
  }
20691
20715
  };
20692
20716
 
package/es/checkout.js CHANGED
@@ -11513,6 +11513,24 @@ var TransactionAPI = {
11513
11513
  }).then(function (response) {
11514
11514
  return response.data;
11515
11515
  });
11516
+ },
11517
+ verifyTransactionStatus: function verifyTransactionStatus(_ref2) {
11518
+ var reference = _ref2.reference,
11519
+ publicKey = _ref2.publicKey;
11520
+ var url = new URL("transaction/verify_status/".concat(reference), configToUse.paystackApiUrl).toString();
11521
+ var language = getLanguage();
11522
+
11523
+ var headers = _objectSpread2({
11524
+ Authorization: "Bearer ".concat(publicKey)
11525
+ }, language && {
11526
+ 'Accept-Language': language
11527
+ });
11528
+
11529
+ return axiosInstance.get(url, {
11530
+ headers: headers
11531
+ }).then(function (response) {
11532
+ return ChargeResponses.parse(response.data);
11533
+ });
11516
11534
  }
11517
11535
  };
11518
11536
 
@@ -20684,6 +20702,12 @@ var Transaction = {
20684
20702
  }
20685
20703
  }, _callee4);
20686
20704
  }))();
20705
+ },
20706
+ verifyTransactionStatus: function verifyTransactionStatus(reference, publicKey) {
20707
+ return TransactionAPI.verifyTransactionStatus({
20708
+ reference: reference,
20709
+ publicKey: publicKey
20710
+ });
20687
20711
  }
20688
20712
  };
20689
20713
 
package/lib/checkout.js CHANGED
@@ -11517,6 +11517,24 @@ var TransactionAPI = {
11517
11517
  }).then(function (response) {
11518
11518
  return response.data;
11519
11519
  });
11520
+ },
11521
+ verifyTransactionStatus: function verifyTransactionStatus(_ref2) {
11522
+ var reference = _ref2.reference,
11523
+ publicKey = _ref2.publicKey;
11524
+ var url = new URL("transaction/verify_status/".concat(reference), configToUse.paystackApiUrl).toString();
11525
+ var language = getLanguage();
11526
+
11527
+ var headers = _objectSpread2({
11528
+ Authorization: "Bearer ".concat(publicKey)
11529
+ }, language && {
11530
+ 'Accept-Language': language
11531
+ });
11532
+
11533
+ return axiosInstance.get(url, {
11534
+ headers: headers
11535
+ }).then(function (response) {
11536
+ return ChargeResponses.parse(response.data);
11537
+ });
11520
11538
  }
11521
11539
  };
11522
11540
 
@@ -20688,6 +20706,12 @@ var Transaction = {
20688
20706
  }
20689
20707
  }, _callee4);
20690
20708
  }))();
20709
+ },
20710
+ verifyTransactionStatus: function verifyTransactionStatus(reference, publicKey) {
20711
+ return TransactionAPI.verifyTransactionStatus({
20712
+ reference: reference,
20713
+ publicKey: publicKey
20714
+ });
20691
20715
  }
20692
20716
  };
20693
20717
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.24.0-dev.2",
3
+ "version": "1.24.0-dev.4",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",