@paystack/checkout-js 1.25.0-dev.16 → 1.25.0-dev.18

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
@@ -11634,29 +11634,21 @@ var Paystack = (function (exports) {
11634
11634
  };
11635
11635
  return this.listenForCharge(listenerOptions, callback);
11636
11636
  },
11637
- sendIncorrectAmountDecision: function sendIncorrectAmountDecision(_ref2) {
11638
- var decisionMade = _ref2.decisionMade;
11637
+ sendIncorrectAmountDecision: function sendIncorrectAmountDecision(decisionMade) {
11639
11638
  var params = {
11640
11639
  transaction_id: this.id,
11641
11640
  decision: decisionMade
11642
11641
  };
11643
- return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key).then(function (response) {
11644
- return response;
11645
- });
11642
+ return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key);
11646
11643
  },
11647
- sendAuthenticatePayer: function sendAuthenticatePayer(_ref3) {
11648
- var amountPaid = _ref3.amountPaid,
11649
- payerAccountNumber = _ref3.payerAccountNumber,
11650
- payerBankSlug = _ref3.payerBankSlug;
11644
+ sendAuthenticatePayer: function sendAuthenticatePayer(amountPaid, payerAccountNumber, payerBankSlug) {
11651
11645
  var params = {
11652
11646
  transaction_id: this.id,
11653
11647
  amount: amountPaid,
11654
11648
  payer_account_number: payerAccountNumber,
11655
11649
  payer_bank_slug: payerBankSlug
11656
11650
  };
11657
- return PayWithTransferAPI.authenticatePayer(params, this.merchant.key).then(function (response) {
11658
- return response;
11659
- });
11651
+ return PayWithTransferAPI.authenticatePayer(params, this.merchant.key);
11660
11652
  }
11661
11653
  };
11662
11654
 
package/es/checkout.js CHANGED
@@ -11631,29 +11631,21 @@ var PayWithTransferCharge = {
11631
11631
  };
11632
11632
  return this.listenForCharge(listenerOptions, callback);
11633
11633
  },
11634
- sendIncorrectAmountDecision: function sendIncorrectAmountDecision(_ref2) {
11635
- var decisionMade = _ref2.decisionMade;
11634
+ sendIncorrectAmountDecision: function sendIncorrectAmountDecision(decisionMade) {
11636
11635
  var params = {
11637
11636
  transaction_id: this.id,
11638
11637
  decision: decisionMade
11639
11638
  };
11640
- return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key).then(function (response) {
11641
- return response;
11642
- });
11639
+ return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key);
11643
11640
  },
11644
- sendAuthenticatePayer: function sendAuthenticatePayer(_ref3) {
11645
- var amountPaid = _ref3.amountPaid,
11646
- payerAccountNumber = _ref3.payerAccountNumber,
11647
- payerBankSlug = _ref3.payerBankSlug;
11641
+ sendAuthenticatePayer: function sendAuthenticatePayer(amountPaid, payerAccountNumber, payerBankSlug) {
11648
11642
  var params = {
11649
11643
  transaction_id: this.id,
11650
11644
  amount: amountPaid,
11651
11645
  payer_account_number: payerAccountNumber,
11652
11646
  payer_bank_slug: payerBankSlug
11653
11647
  };
11654
- return PayWithTransferAPI.authenticatePayer(params, this.merchant.key).then(function (response) {
11655
- return response;
11656
- });
11648
+ return PayWithTransferAPI.authenticatePayer(params, this.merchant.key);
11657
11649
  }
11658
11650
  };
11659
11651
 
package/lib/checkout.js CHANGED
@@ -11635,29 +11635,21 @@ var PayWithTransferCharge = {
11635
11635
  };
11636
11636
  return this.listenForCharge(listenerOptions, callback);
11637
11637
  },
11638
- sendIncorrectAmountDecision: function sendIncorrectAmountDecision(_ref2) {
11639
- var decisionMade = _ref2.decisionMade;
11638
+ sendIncorrectAmountDecision: function sendIncorrectAmountDecision(decisionMade) {
11640
11639
  var params = {
11641
11640
  transaction_id: this.id,
11642
11641
  decision: decisionMade
11643
11642
  };
11644
- return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key).then(function (response) {
11645
- return response;
11646
- });
11643
+ return PayWithTransferAPI.incorrectAmountDecision(params, this.merchant.key);
11647
11644
  },
11648
- sendAuthenticatePayer: function sendAuthenticatePayer(_ref3) {
11649
- var amountPaid = _ref3.amountPaid,
11650
- payerAccountNumber = _ref3.payerAccountNumber,
11651
- payerBankSlug = _ref3.payerBankSlug;
11645
+ sendAuthenticatePayer: function sendAuthenticatePayer(amountPaid, payerAccountNumber, payerBankSlug) {
11652
11646
  var params = {
11653
11647
  transaction_id: this.id,
11654
11648
  amount: amountPaid,
11655
11649
  payer_account_number: payerAccountNumber,
11656
11650
  payer_bank_slug: payerBankSlug
11657
11651
  };
11658
- return PayWithTransferAPI.authenticatePayer(params, this.merchant.key).then(function (response) {
11659
- return response;
11660
- });
11652
+ return PayWithTransferAPI.authenticatePayer(params, this.merchant.key);
11661
11653
  }
11662
11654
  };
11663
11655
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.25.0-dev.16",
3
+ "version": "1.25.0-dev.18",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",