@paystack/checkout-js 1.50.2-dev.1 → 1.50.2-dev.2

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
@@ -20258,19 +20258,21 @@ var Paystack = (function (exports) {
20258
20258
  provider = payload.provider,
20259
20259
  voucher = payload.voucher,
20260
20260
  registrationToken = payload.registrationToken,
20261
- accountNumber = payload.accountNumber;
20261
+ accountNumber = payload.accountNumber,
20262
+ id = payload.id,
20263
+ deviceFingerprint = payload.deviceFingerprint;
20262
20264
  return _objectSpread2(_objectSpread2(_objectSpread2({
20263
20265
  provider: provider,
20264
20266
  registrationToken: registrationToken,
20265
- transaction: this.id,
20267
+ transaction: id,
20266
20268
  voucher: voucher
20267
20269
  }, phoneNumber && {
20268
20270
  phone: phoneNumber
20269
20271
  }), accountNumber && {
20270
20272
  account: accountNumber
20271
20273
  }), {}, {
20272
- device: this.deviceFingerprint,
20273
- channel_name: "MOBILE_MONEY_".concat(this.id)
20274
+ device: deviceFingerprint,
20275
+ channel_name: "MOBILE_MONEY_".concat(id)
20274
20276
  });
20275
20277
  }
20276
20278
  var MobileMoneyCharge = {
@@ -20294,7 +20296,7 @@ var Paystack = (function (exports) {
20294
20296
  voucher = _ref.voucher,
20295
20297
  registrationToken = _ref.registrationToken;
20296
20298
  this.logAttempt('mobile money');
20297
- var params = buildMobileMoneyParams.call(this, _objectSpread2({
20299
+ var params = buildMobileMoneyParams(_objectSpread2(_objectSpread2({
20298
20300
  provider: provider,
20299
20301
  voucher: voucher,
20300
20302
  registrationToken: registrationToken
@@ -20302,6 +20304,9 @@ var Paystack = (function (exports) {
20302
20304
  phoneNumber: phoneNumber
20303
20305
  } : {
20304
20306
  accountNumber: accountNumber
20307
+ }), {}, {
20308
+ id: this.id,
20309
+ deviceFingerprint: this.deviceFingerprint
20305
20310
  }));
20306
20311
  if (phoneNumber) {
20307
20312
  return validate$1(phoneNumber).then(function () {
@@ -20317,10 +20322,12 @@ var Paystack = (function (exports) {
20317
20322
  registrationToken = payload.registrationToken;
20318
20323
  return validate$1(phoneNumber).then(function () {
20319
20324
  _this3.logMobileMoneyActions(payload);
20320
- var params = buildMobileMoneyParams.call(_this3, {
20325
+ var params = buildMobileMoneyParams({
20321
20326
  provider: provider,
20322
20327
  registrationToken: registrationToken,
20323
- phoneNumber: phoneNumber
20328
+ phoneNumber: phoneNumber,
20329
+ id: _this3.id,
20330
+ deviceFingerprint: _this3.deviceFingerprint
20324
20331
  });
20325
20332
  return MobileMoneyAPI.charge(params).then(function (response) {
20326
20333
  if (response.status === 'success') {
package/es/checkout.js CHANGED
@@ -20255,19 +20255,21 @@ function buildMobileMoneyParams(payload) {
20255
20255
  provider = payload.provider,
20256
20256
  voucher = payload.voucher,
20257
20257
  registrationToken = payload.registrationToken,
20258
- accountNumber = payload.accountNumber;
20258
+ accountNumber = payload.accountNumber,
20259
+ id = payload.id,
20260
+ deviceFingerprint = payload.deviceFingerprint;
20259
20261
  return _objectSpread2(_objectSpread2(_objectSpread2({
20260
20262
  provider: provider,
20261
20263
  registrationToken: registrationToken,
20262
- transaction: this.id,
20264
+ transaction: id,
20263
20265
  voucher: voucher
20264
20266
  }, phoneNumber && {
20265
20267
  phone: phoneNumber
20266
20268
  }), accountNumber && {
20267
20269
  account: accountNumber
20268
20270
  }), {}, {
20269
- device: this.deviceFingerprint,
20270
- channel_name: "MOBILE_MONEY_".concat(this.id)
20271
+ device: deviceFingerprint,
20272
+ channel_name: "MOBILE_MONEY_".concat(id)
20271
20273
  });
20272
20274
  }
20273
20275
  var MobileMoneyCharge = {
@@ -20291,7 +20293,7 @@ var MobileMoneyCharge = {
20291
20293
  voucher = _ref.voucher,
20292
20294
  registrationToken = _ref.registrationToken;
20293
20295
  this.logAttempt('mobile money');
20294
- var params = buildMobileMoneyParams.call(this, _objectSpread2({
20296
+ var params = buildMobileMoneyParams(_objectSpread2(_objectSpread2({
20295
20297
  provider: provider,
20296
20298
  voucher: voucher,
20297
20299
  registrationToken: registrationToken
@@ -20299,6 +20301,9 @@ var MobileMoneyCharge = {
20299
20301
  phoneNumber: phoneNumber
20300
20302
  } : {
20301
20303
  accountNumber: accountNumber
20304
+ }), {}, {
20305
+ id: this.id,
20306
+ deviceFingerprint: this.deviceFingerprint
20302
20307
  }));
20303
20308
  if (phoneNumber) {
20304
20309
  return validate$1(phoneNumber).then(function () {
@@ -20314,10 +20319,12 @@ var MobileMoneyCharge = {
20314
20319
  registrationToken = payload.registrationToken;
20315
20320
  return validate$1(phoneNumber).then(function () {
20316
20321
  _this3.logMobileMoneyActions(payload);
20317
- var params = buildMobileMoneyParams.call(_this3, {
20322
+ var params = buildMobileMoneyParams({
20318
20323
  provider: provider,
20319
20324
  registrationToken: registrationToken,
20320
- phoneNumber: phoneNumber
20325
+ phoneNumber: phoneNumber,
20326
+ id: _this3.id,
20327
+ deviceFingerprint: _this3.deviceFingerprint
20321
20328
  });
20322
20329
  return MobileMoneyAPI.charge(params).then(function (response) {
20323
20330
  if (response.status === 'success') {
package/lib/checkout.js CHANGED
@@ -20259,19 +20259,21 @@ function buildMobileMoneyParams(payload) {
20259
20259
  provider = payload.provider,
20260
20260
  voucher = payload.voucher,
20261
20261
  registrationToken = payload.registrationToken,
20262
- accountNumber = payload.accountNumber;
20262
+ accountNumber = payload.accountNumber,
20263
+ id = payload.id,
20264
+ deviceFingerprint = payload.deviceFingerprint;
20263
20265
  return _objectSpread2(_objectSpread2(_objectSpread2({
20264
20266
  provider: provider,
20265
20267
  registrationToken: registrationToken,
20266
- transaction: this.id,
20268
+ transaction: id,
20267
20269
  voucher: voucher
20268
20270
  }, phoneNumber && {
20269
20271
  phone: phoneNumber
20270
20272
  }), accountNumber && {
20271
20273
  account: accountNumber
20272
20274
  }), {}, {
20273
- device: this.deviceFingerprint,
20274
- channel_name: "MOBILE_MONEY_".concat(this.id)
20275
+ device: deviceFingerprint,
20276
+ channel_name: "MOBILE_MONEY_".concat(id)
20275
20277
  });
20276
20278
  }
20277
20279
  var MobileMoneyCharge = {
@@ -20295,7 +20297,7 @@ var MobileMoneyCharge = {
20295
20297
  voucher = _ref.voucher,
20296
20298
  registrationToken = _ref.registrationToken;
20297
20299
  this.logAttempt('mobile money');
20298
- var params = buildMobileMoneyParams.call(this, _objectSpread2({
20300
+ var params = buildMobileMoneyParams(_objectSpread2(_objectSpread2({
20299
20301
  provider: provider,
20300
20302
  voucher: voucher,
20301
20303
  registrationToken: registrationToken
@@ -20303,6 +20305,9 @@ var MobileMoneyCharge = {
20303
20305
  phoneNumber: phoneNumber
20304
20306
  } : {
20305
20307
  accountNumber: accountNumber
20308
+ }), {}, {
20309
+ id: this.id,
20310
+ deviceFingerprint: this.deviceFingerprint
20306
20311
  }));
20307
20312
  if (phoneNumber) {
20308
20313
  return validate$1(phoneNumber).then(function () {
@@ -20318,10 +20323,12 @@ var MobileMoneyCharge = {
20318
20323
  registrationToken = payload.registrationToken;
20319
20324
  return validate$1(phoneNumber).then(function () {
20320
20325
  _this3.logMobileMoneyActions(payload);
20321
- var params = buildMobileMoneyParams.call(_this3, {
20326
+ var params = buildMobileMoneyParams({
20322
20327
  provider: provider,
20323
20328
  registrationToken: registrationToken,
20324
- phoneNumber: phoneNumber
20329
+ phoneNumber: phoneNumber,
20330
+ id: _this3.id,
20331
+ deviceFingerprint: _this3.deviceFingerprint
20325
20332
  });
20326
20333
  return MobileMoneyAPI.charge(params).then(function (response) {
20327
20334
  if (response.status === 'success') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.50.2-dev.1",
3
+ "version": "1.50.2-dev.2",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",