@paystack/checkout-js 1.25.0-dev.15 → 1.25.0-dev.17

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
@@ -11635,24 +11635,14 @@ var Paystack = (function (exports) {
11635
11635
  return this.listenForCharge(listenerOptions, callback);
11636
11636
  },
11637
11637
  sendIncorrectAmountDecision: function sendIncorrectAmountDecision(_ref2) {
11638
- var _this2 = this;
11639
-
11640
11638
  var decisionMade = _ref2.decisionMade;
11641
11639
  var params = {
11642
11640
  transaction_id: this.id,
11643
11641
  decision: decisionMade
11644
11642
  };
11645
- return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key).then(function (response) {
11646
- if (response.status === 'success') {
11647
- _this2.bankTransfer = response;
11648
- }
11649
-
11650
- return response;
11651
- });
11643
+ return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key);
11652
11644
  },
11653
11645
  sendAuthenticatePayer: function sendAuthenticatePayer(_ref3) {
11654
- var _this3 = this;
11655
-
11656
11646
  var amountPaid = _ref3.amountPaid,
11657
11647
  payerAccountNumber = _ref3.payerAccountNumber,
11658
11648
  payerBankSlug = _ref3.payerBankSlug;
@@ -11662,13 +11652,7 @@ var Paystack = (function (exports) {
11662
11652
  payer_account_number: payerAccountNumber,
11663
11653
  payer_bank_slug: payerBankSlug
11664
11654
  };
11665
- return PayWithTransferAPI.authenticatePayer(params, this.merchant.key).then(function (response) {
11666
- if (response.status === 'success') {
11667
- _this3.bankTransfer = response;
11668
- }
11669
-
11670
- return response;
11671
- });
11655
+ return PayWithTransferAPI.authenticatePayer(params, this.merchant.key);
11672
11656
  }
11673
11657
  };
11674
11658
 
package/es/checkout.js CHANGED
@@ -11632,24 +11632,14 @@ var PayWithTransferCharge = {
11632
11632
  return this.listenForCharge(listenerOptions, callback);
11633
11633
  },
11634
11634
  sendIncorrectAmountDecision: function sendIncorrectAmountDecision(_ref2) {
11635
- var _this2 = this;
11636
-
11637
11635
  var decisionMade = _ref2.decisionMade;
11638
11636
  var params = {
11639
11637
  transaction_id: this.id,
11640
11638
  decision: decisionMade
11641
11639
  };
11642
- return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key).then(function (response) {
11643
- if (response.status === 'success') {
11644
- _this2.bankTransfer = response;
11645
- }
11646
-
11647
- return response;
11648
- });
11640
+ return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key);
11649
11641
  },
11650
11642
  sendAuthenticatePayer: function sendAuthenticatePayer(_ref3) {
11651
- var _this3 = this;
11652
-
11653
11643
  var amountPaid = _ref3.amountPaid,
11654
11644
  payerAccountNumber = _ref3.payerAccountNumber,
11655
11645
  payerBankSlug = _ref3.payerBankSlug;
@@ -11659,13 +11649,7 @@ var PayWithTransferCharge = {
11659
11649
  payer_account_number: payerAccountNumber,
11660
11650
  payer_bank_slug: payerBankSlug
11661
11651
  };
11662
- return PayWithTransferAPI.authenticatePayer(params, this.merchant.key).then(function (response) {
11663
- if (response.status === 'success') {
11664
- _this3.bankTransfer = response;
11665
- }
11666
-
11667
- return response;
11668
- });
11652
+ return PayWithTransferAPI.authenticatePayer(params, this.merchant.key);
11669
11653
  }
11670
11654
  };
11671
11655
 
package/lib/checkout.js CHANGED
@@ -11636,24 +11636,14 @@ var PayWithTransferCharge = {
11636
11636
  return this.listenForCharge(listenerOptions, callback);
11637
11637
  },
11638
11638
  sendIncorrectAmountDecision: function sendIncorrectAmountDecision(_ref2) {
11639
- var _this2 = this;
11640
-
11641
11639
  var decisionMade = _ref2.decisionMade;
11642
11640
  var params = {
11643
11641
  transaction_id: this.id,
11644
11642
  decision: decisionMade
11645
11643
  };
11646
- return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key).then(function (response) {
11647
- if (response.status === 'success') {
11648
- _this2.bankTransfer = response;
11649
- }
11650
-
11651
- return response;
11652
- });
11644
+ return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key);
11653
11645
  },
11654
11646
  sendAuthenticatePayer: function sendAuthenticatePayer(_ref3) {
11655
- var _this3 = this;
11656
-
11657
11647
  var amountPaid = _ref3.amountPaid,
11658
11648
  payerAccountNumber = _ref3.payerAccountNumber,
11659
11649
  payerBankSlug = _ref3.payerBankSlug;
@@ -11663,13 +11653,7 @@ var PayWithTransferCharge = {
11663
11653
  payer_account_number: payerAccountNumber,
11664
11654
  payer_bank_slug: payerBankSlug
11665
11655
  };
11666
- return PayWithTransferAPI.authenticatePayer(params, this.merchant.key).then(function (response) {
11667
- if (response.status === 'success') {
11668
- _this3.bankTransfer = response;
11669
- }
11670
-
11671
- return response;
11672
- });
11656
+ return PayWithTransferAPI.authenticatePayer(params, this.merchant.key);
11673
11657
  }
11674
11658
  };
11675
11659
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.25.0-dev.15",
3
+ "version": "1.25.0-dev.17",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",