@paystack/checkout-js 1.18.0-dev.8 → 1.18.0-dev.9

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/es/checkout.js CHANGED
@@ -3571,10 +3571,6 @@ var fields = {
3571
3571
  subscription: {
3572
3572
  required: false,
3573
3573
  isValid: isInteger
3574
- },
3575
- selected_currency: {
3576
- required: false,
3577
- isValid: isString$1
3578
3574
  }
3579
3575
  };
3580
3576
  function ValidateTransactionParameters(data) {
@@ -18622,7 +18618,7 @@ var CardCharge = {
18622
18618
  rememberCard: _this2.remember_card,
18623
18619
  transactionType: _this2.transactionType,
18624
18620
  subscription: _this2.subscription,
18625
- selectedCurrency: _this2.selected_currency,
18621
+ selectedCurrency: customFields.selected_currency,
18626
18622
  customFields: customFields
18627
18623
  };
18628
18624
  return CardAPI.charge(chargeParams).then(function (response) {
@@ -18749,15 +18745,6 @@ var CardCharge = {
18749
18745
  paymentMethod: paymentMethod$3
18750
18746
  };
18751
18747
  return this.listenForCharge(listenerOptions, callback);
18752
- },
18753
- resolveBin: function resolveBin(first6) {
18754
- var _this9 = this;
18755
-
18756
- return CardAPI.resolveBin(first6).then(function (response) {
18757
- _this9.logAPIResponse(response, paymentMethod$3);
18758
-
18759
- return response;
18760
- });
18761
18748
  }
18762
18749
  };
18763
18750
 
@@ -20608,7 +20595,7 @@ var ToolkitAPI = {
20608
20595
  return response.data;
20609
20596
  });
20610
20597
  },
20611
- resolveBin: function resolveBin(bin) {
20598
+ resolveCardBin: function resolveCardBin(bin) {
20612
20599
  var language = getLanguage();
20613
20600
 
20614
20601
  var headers = _objectSpread2({}, language && {
package/lib/checkout.js CHANGED
@@ -3575,10 +3575,6 @@ var fields = {
3575
3575
  subscription: {
3576
3576
  required: false,
3577
3577
  isValid: isInteger
3578
- },
3579
- selected_currency: {
3580
- required: false,
3581
- isValid: isString$1
3582
3578
  }
3583
3579
  };
3584
3580
  function ValidateTransactionParameters(data) {
@@ -18626,7 +18622,7 @@ var CardCharge = {
18626
18622
  rememberCard: _this2.remember_card,
18627
18623
  transactionType: _this2.transactionType,
18628
18624
  subscription: _this2.subscription,
18629
- selectedCurrency: _this2.selected_currency,
18625
+ selectedCurrency: customFields.selected_currency,
18630
18626
  customFields: customFields
18631
18627
  };
18632
18628
  return CardAPI.charge(chargeParams).then(function (response) {
@@ -18753,15 +18749,6 @@ var CardCharge = {
18753
18749
  paymentMethod: paymentMethod$3
18754
18750
  };
18755
18751
  return this.listenForCharge(listenerOptions, callback);
18756
- },
18757
- resolveBin: function resolveBin(first6) {
18758
- var _this9 = this;
18759
-
18760
- return CardAPI.resolveBin(first6).then(function (response) {
18761
- _this9.logAPIResponse(response, paymentMethod$3);
18762
-
18763
- return response;
18764
- });
18765
18752
  }
18766
18753
  };
18767
18754
 
@@ -20612,7 +20599,7 @@ var ToolkitAPI = {
20612
20599
  return response.data;
20613
20600
  });
20614
20601
  },
20615
- resolveBin: function resolveBin(bin) {
20602
+ resolveCardBin: function resolveCardBin(bin) {
20616
20603
  var language = getLanguage();
20617
20604
 
20618
20605
  var headers = _objectSpread2({}, language && {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.18.0-dev.8",
3
+ "version": "1.18.0-dev.9",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",