@paystack/checkout-js 1.20.0-dev.2 → 1.20.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
@@ -18736,12 +18736,12 @@ var Paystack = (function (exports) {
18736
18736
  },
18737
18737
  verifySavedCardsOtp: function verifySavedCardsOtp(_ref7) {
18738
18738
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
18739
- var code, phone, transaction, url, language, headers, data, response;
18739
+ var code, email, transaction, url, language, headers, data, response;
18740
18740
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
18741
18741
  while (1) {
18742
18742
  switch (_context3.prev = _context3.next) {
18743
18743
  case 0:
18744
- code = _ref7.code, phone = _ref7.phone, transaction = _ref7.transaction;
18744
+ code = _ref7.code, email = _ref7.email, transaction = _ref7.transaction;
18745
18745
  url = new URL('/authorize/verify', configToUse.savedCardsApiUrl).toString();
18746
18746
  language = getLanguage();
18747
18747
  headers = _objectSpread2({}, language && {
@@ -18749,7 +18749,7 @@ var Paystack = (function (exports) {
18749
18749
  });
18750
18750
  data = {
18751
18751
  code: code,
18752
- phone: phone,
18752
+ email: email,
18753
18753
  transaction: transaction
18754
18754
  };
18755
18755
  _context3.next = 7;
@@ -19064,15 +19064,15 @@ var Paystack = (function (exports) {
19064
19064
  var _this9 = this;
19065
19065
 
19066
19066
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
19067
- var code, phone, payload, response;
19067
+ var code, payload, response;
19068
19068
  return regeneratorRuntime.wrap(function _callee$(_context) {
19069
19069
  while (1) {
19070
19070
  switch (_context.prev = _context.next) {
19071
19071
  case 0:
19072
- code = _ref5.code, phone = _ref5.phone;
19072
+ code = _ref5.code;
19073
19073
  payload = {
19074
19074
  code: code,
19075
- phone: phone,
19075
+ email: _this9.email,
19076
19076
  transaction: _this9.id
19077
19077
  };
19078
19078
  _context.prev = 2;
@@ -21218,6 +21218,7 @@ var Paystack = (function (exports) {
21218
21218
  name: data.merchant_name,
21219
21219
  key: data.merchant_key
21220
21220
  };
21221
+ this.card = {};
21221
21222
  loadPusher(); // TODO: Analytics
21222
21223
  // https://paystack.atlassian.net/browse/RAILS-3070
21223
21224
 
package/es/checkout.js CHANGED
@@ -18733,12 +18733,12 @@ var CardAPI$1 = {
18733
18733
  },
18734
18734
  verifySavedCardsOtp: function verifySavedCardsOtp(_ref7) {
18735
18735
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
18736
- var code, phone, transaction, url, language, headers, data, response;
18736
+ var code, email, transaction, url, language, headers, data, response;
18737
18737
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
18738
18738
  while (1) {
18739
18739
  switch (_context3.prev = _context3.next) {
18740
18740
  case 0:
18741
- code = _ref7.code, phone = _ref7.phone, transaction = _ref7.transaction;
18741
+ code = _ref7.code, email = _ref7.email, transaction = _ref7.transaction;
18742
18742
  url = new URL('/authorize/verify', configToUse.savedCardsApiUrl).toString();
18743
18743
  language = getLanguage();
18744
18744
  headers = _objectSpread2({}, language && {
@@ -18746,7 +18746,7 @@ var CardAPI$1 = {
18746
18746
  });
18747
18747
  data = {
18748
18748
  code: code,
18749
- phone: phone,
18749
+ email: email,
18750
18750
  transaction: transaction
18751
18751
  };
18752
18752
  _context3.next = 7;
@@ -19061,15 +19061,15 @@ var CardCharge = {
19061
19061
  var _this9 = this;
19062
19062
 
19063
19063
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
19064
- var code, phone, payload, response;
19064
+ var code, payload, response;
19065
19065
  return regeneratorRuntime.wrap(function _callee$(_context) {
19066
19066
  while (1) {
19067
19067
  switch (_context.prev = _context.next) {
19068
19068
  case 0:
19069
- code = _ref5.code, phone = _ref5.phone;
19069
+ code = _ref5.code;
19070
19070
  payload = {
19071
19071
  code: code,
19072
- phone: phone,
19072
+ email: _this9.email,
19073
19073
  transaction: _this9.id
19074
19074
  };
19075
19075
  _context.prev = 2;
@@ -21215,6 +21215,7 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
21215
21215
  name: data.merchant_name,
21216
21216
  key: data.merchant_key
21217
21217
  };
21218
+ this.card = {};
21218
21219
  loadPusher(); // TODO: Analytics
21219
21220
  // https://paystack.atlassian.net/browse/RAILS-3070
21220
21221
 
package/lib/checkout.js CHANGED
@@ -18737,12 +18737,12 @@ var CardAPI$1 = {
18737
18737
  },
18738
18738
  verifySavedCardsOtp: function verifySavedCardsOtp(_ref7) {
18739
18739
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
18740
- var code, phone, transaction, url, language, headers, data, response;
18740
+ var code, email, transaction, url, language, headers, data, response;
18741
18741
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
18742
18742
  while (1) {
18743
18743
  switch (_context3.prev = _context3.next) {
18744
18744
  case 0:
18745
- code = _ref7.code, phone = _ref7.phone, transaction = _ref7.transaction;
18745
+ code = _ref7.code, email = _ref7.email, transaction = _ref7.transaction;
18746
18746
  url = new URL('/authorize/verify', configToUse.savedCardsApiUrl).toString();
18747
18747
  language = getLanguage();
18748
18748
  headers = _objectSpread2({}, language && {
@@ -18750,7 +18750,7 @@ var CardAPI$1 = {
18750
18750
  });
18751
18751
  data = {
18752
18752
  code: code,
18753
- phone: phone,
18753
+ email: email,
18754
18754
  transaction: transaction
18755
18755
  };
18756
18756
  _context3.next = 7;
@@ -19065,15 +19065,15 @@ var CardCharge = {
19065
19065
  var _this9 = this;
19066
19066
 
19067
19067
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
19068
- var code, phone, payload, response;
19068
+ var code, payload, response;
19069
19069
  return regeneratorRuntime.wrap(function _callee$(_context) {
19070
19070
  while (1) {
19071
19071
  switch (_context.prev = _context.next) {
19072
19072
  case 0:
19073
- code = _ref5.code, phone = _ref5.phone;
19073
+ code = _ref5.code;
19074
19074
  payload = {
19075
19075
  code: code,
19076
- phone: phone,
19076
+ email: _this9.email,
19077
19077
  transaction: _this9.id
19078
19078
  };
19079
19079
  _context.prev = 2;
@@ -21219,6 +21219,7 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
21219
21219
  name: data.merchant_name,
21220
21220
  key: data.merchant_key
21221
21221
  };
21222
+ this.card = {};
21222
21223
  loadPusher(); // TODO: Analytics
21223
21224
  // https://paystack.atlassian.net/browse/RAILS-3070
21224
21225
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.20.0-dev.2",
3
+ "version": "1.20.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",