@paystack/checkout-js 1.28.0-dev.6 → 1.28.0-dev.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/README.md CHANGED
@@ -48,6 +48,6 @@ Checkout JS is deployed to three environments:
48
48
 
49
49
  Checkout JS is automatically packaged and published to the NPM registry on every push to the `master` and `dev` branches.
50
50
 
51
- The `master` branch is publised under the `latest` tag so it can be installed by running `npm i @paystack/checkout-js@latest` while the `dev` branch is published under the `dev` tag so it can be installed using `npm i @paystack/checkout-js@dev`
51
+ The `master` branch is publised under the `latest` tag that can be installed by running `npm i @paystack/checkout-js@latest` while the `dev` branch is published under the `dev` tag so it can be installed using `npm i @paystack/checkout-js@dev`
52
52
 
53
53
  All published versions are listed here on NPM https://www.npmjs.com/package/@paystack/checkout-js
package/dist/checkout.js CHANGED
@@ -21190,7 +21190,7 @@ var Paystack = (function (exports) {
21190
21190
  }
21191
21191
  };
21192
21192
 
21193
- var PreauthorisationAPI = {
21193
+ var PreauthorizationAPI = {
21194
21194
  getByAccessCode: function getByAccessCode(accessCode) {
21195
21195
  var language = getLanguage();
21196
21196
 
@@ -21357,7 +21357,7 @@ var Paystack = (function (exports) {
21357
21357
  return this.saveLog();
21358
21358
  },
21359
21359
  logAuthorized: function logAuthorized(channel) {
21360
- var message = 'Successfully preauthorised funds';
21360
+ var message = 'Successfully preauthorized funds';
21361
21361
 
21362
21362
  if (channel) {
21363
21363
  message += " with ".concat(channel);
@@ -21442,37 +21442,18 @@ var Paystack = (function (exports) {
21442
21442
  }
21443
21443
  }, {
21444
21444
  key: "requery",
21445
- value: function () {
21446
- var _requery = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
21447
- var _this = this;
21448
-
21449
- return regeneratorRuntime.wrap(function _callee$(_context) {
21450
- while (1) {
21451
- switch (_context.prev = _context.next) {
21452
- case 0:
21453
- return _context.abrupt("return", PreauthorisationAPI.requery({
21454
- reference: this.reference,
21455
- publicKey: this.merchant.key
21456
- }).then(function (response) {
21457
- _this.logAPIResponse(response, PAYMENT_METHOD);
21458
-
21459
- return response;
21460
- }));
21461
-
21462
- case 1:
21463
- case "end":
21464
- return _context.stop();
21465
- }
21466
- }
21467
- }, _callee, this);
21468
- }));
21445
+ value: function requery() {
21446
+ var _this = this;
21469
21447
 
21470
- function requery() {
21471
- return _requery.apply(this, arguments);
21472
- }
21448
+ return PreauthorizationAPI.requery({
21449
+ reference: this.reference,
21450
+ publicKey: this.merchant.key
21451
+ }).then(function (response) {
21452
+ _this.logAPIResponse(response, PAYMENT_METHOD);
21473
21453
 
21474
- return requery;
21475
- }()
21454
+ return response;
21455
+ });
21456
+ }
21476
21457
  }, {
21477
21458
  key: "listenForCharge",
21478
21459
  value: function listenForCharge(options, callback) {
@@ -21500,7 +21481,7 @@ var Paystack = (function (exports) {
21500
21481
  case 2:
21501
21482
  deviceFingerprint = _context.sent;
21502
21483
  _context.next = 5;
21503
- return PreauthorisationAPI.getByAccessCode(accessCode);
21484
+ return PreauthorizationAPI.getByAccessCode(accessCode);
21504
21485
 
21505
21486
  case 5:
21506
21487
  response = _context.sent;
package/es/checkout.js CHANGED
@@ -21187,7 +21187,7 @@ var CardPreauthorization = {
21187
21187
  }
21188
21188
  };
21189
21189
 
21190
- var PreauthorisationAPI = {
21190
+ var PreauthorizationAPI = {
21191
21191
  getByAccessCode: function getByAccessCode(accessCode) {
21192
21192
  var language = getLanguage();
21193
21193
 
@@ -21354,7 +21354,7 @@ var AnalyticsFunctions = {
21354
21354
  return this.saveLog();
21355
21355
  },
21356
21356
  logAuthorized: function logAuthorized(channel) {
21357
- var message = 'Successfully preauthorised funds';
21357
+ var message = 'Successfully preauthorized funds';
21358
21358
 
21359
21359
  if (channel) {
21360
21360
  message += " with ".concat(channel);
@@ -21439,37 +21439,18 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
21439
21439
  }
21440
21440
  }, {
21441
21441
  key: "requery",
21442
- value: function () {
21443
- var _requery = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
21444
- var _this = this;
21445
-
21446
- return regeneratorRuntime.wrap(function _callee$(_context) {
21447
- while (1) {
21448
- switch (_context.prev = _context.next) {
21449
- case 0:
21450
- return _context.abrupt("return", PreauthorisationAPI.requery({
21451
- reference: this.reference,
21452
- publicKey: this.merchant.key
21453
- }).then(function (response) {
21454
- _this.logAPIResponse(response, PAYMENT_METHOD);
21455
-
21456
- return response;
21457
- }));
21458
-
21459
- case 1:
21460
- case "end":
21461
- return _context.stop();
21462
- }
21463
- }
21464
- }, _callee, this);
21465
- }));
21442
+ value: function requery() {
21443
+ var _this = this;
21466
21444
 
21467
- function requery() {
21468
- return _requery.apply(this, arguments);
21469
- }
21445
+ return PreauthorizationAPI.requery({
21446
+ reference: this.reference,
21447
+ publicKey: this.merchant.key
21448
+ }).then(function (response) {
21449
+ _this.logAPIResponse(response, PAYMENT_METHOD);
21470
21450
 
21471
- return requery;
21472
- }()
21451
+ return response;
21452
+ });
21453
+ }
21473
21454
  }, {
21474
21455
  key: "listenForCharge",
21475
21456
  value: function listenForCharge(options, callback) {
@@ -21497,7 +21478,7 @@ var Preauthorization = {
21497
21478
  case 2:
21498
21479
  deviceFingerprint = _context.sent;
21499
21480
  _context.next = 5;
21500
- return PreauthorisationAPI.getByAccessCode(accessCode);
21481
+ return PreauthorizationAPI.getByAccessCode(accessCode);
21501
21482
 
21502
21483
  case 5:
21503
21484
  response = _context.sent;
package/lib/checkout.js CHANGED
@@ -21191,7 +21191,7 @@ var CardPreauthorization = {
21191
21191
  }
21192
21192
  };
21193
21193
 
21194
- var PreauthorisationAPI = {
21194
+ var PreauthorizationAPI = {
21195
21195
  getByAccessCode: function getByAccessCode(accessCode) {
21196
21196
  var language = getLanguage();
21197
21197
 
@@ -21358,7 +21358,7 @@ var AnalyticsFunctions = {
21358
21358
  return this.saveLog();
21359
21359
  },
21360
21360
  logAuthorized: function logAuthorized(channel) {
21361
- var message = 'Successfully preauthorised funds';
21361
+ var message = 'Successfully preauthorized funds';
21362
21362
 
21363
21363
  if (channel) {
21364
21364
  message += " with ".concat(channel);
@@ -21443,37 +21443,18 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
21443
21443
  }
21444
21444
  }, {
21445
21445
  key: "requery",
21446
- value: function () {
21447
- var _requery = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
21448
- var _this = this;
21449
-
21450
- return regeneratorRuntime.wrap(function _callee$(_context) {
21451
- while (1) {
21452
- switch (_context.prev = _context.next) {
21453
- case 0:
21454
- return _context.abrupt("return", PreauthorisationAPI.requery({
21455
- reference: this.reference,
21456
- publicKey: this.merchant.key
21457
- }).then(function (response) {
21458
- _this.logAPIResponse(response, PAYMENT_METHOD);
21459
-
21460
- return response;
21461
- }));
21462
-
21463
- case 1:
21464
- case "end":
21465
- return _context.stop();
21466
- }
21467
- }
21468
- }, _callee, this);
21469
- }));
21446
+ value: function requery() {
21447
+ var _this = this;
21470
21448
 
21471
- function requery() {
21472
- return _requery.apply(this, arguments);
21473
- }
21449
+ return PreauthorizationAPI.requery({
21450
+ reference: this.reference,
21451
+ publicKey: this.merchant.key
21452
+ }).then(function (response) {
21453
+ _this.logAPIResponse(response, PAYMENT_METHOD);
21474
21454
 
21475
- return requery;
21476
- }()
21455
+ return response;
21456
+ });
21457
+ }
21477
21458
  }, {
21478
21459
  key: "listenForCharge",
21479
21460
  value: function listenForCharge(options, callback) {
@@ -21501,7 +21482,7 @@ var Preauthorization = {
21501
21482
  case 2:
21502
21483
  deviceFingerprint = _context.sent;
21503
21484
  _context.next = 5;
21504
- return PreauthorisationAPI.getByAccessCode(accessCode);
21485
+ return PreauthorizationAPI.getByAccessCode(accessCode);
21505
21486
 
21506
21487
  case 5:
21507
21488
  response = _context.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.28.0-dev.6",
3
+ "version": "1.28.0-dev.8",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",