@paystack/checkout-js 1.28.0-dev.3 → 1.28.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
@@ -21309,8 +21309,8 @@ var Paystack = (function (exports) {
21309
21309
  },
21310
21310
  logAPIResponse: function logAPIResponse(response, channel) {
21311
21311
  switch (response.status) {
21312
- case 'success':
21313
- return this.logSuccess(channel);
21312
+ case 'authorized':
21313
+ return this.logAuthorized(channel);
21314
21314
 
21315
21315
  case 'failed':
21316
21316
  return this.logError(response.message);
@@ -21354,7 +21354,7 @@ var Paystack = (function (exports) {
21354
21354
  });
21355
21355
  return this.saveLog();
21356
21356
  },
21357
- logSuccess: function logSuccess(channel) {
21357
+ logAuthorized: function logAuthorized(channel) {
21358
21358
  var message = 'Successfully preauthorised funds';
21359
21359
 
21360
21360
  if (channel) {
@@ -21363,7 +21363,7 @@ var Paystack = (function (exports) {
21363
21363
 
21364
21364
  this.log.success = true;
21365
21365
  this.log.history.push({
21366
- type: 'success',
21366
+ type: 'authorized',
21367
21367
  message: message,
21368
21368
  time: this.getTimeSpent()
21369
21369
  });
package/es/checkout.js CHANGED
@@ -21306,8 +21306,8 @@ var AnalyticsFunctions = {
21306
21306
  },
21307
21307
  logAPIResponse: function logAPIResponse(response, channel) {
21308
21308
  switch (response.status) {
21309
- case 'success':
21310
- return this.logSuccess(channel);
21309
+ case 'authorized':
21310
+ return this.logAuthorized(channel);
21311
21311
 
21312
21312
  case 'failed':
21313
21313
  return this.logError(response.message);
@@ -21351,7 +21351,7 @@ var AnalyticsFunctions = {
21351
21351
  });
21352
21352
  return this.saveLog();
21353
21353
  },
21354
- logSuccess: function logSuccess(channel) {
21354
+ logAuthorized: function logAuthorized(channel) {
21355
21355
  var message = 'Successfully preauthorised funds';
21356
21356
 
21357
21357
  if (channel) {
@@ -21360,7 +21360,7 @@ var AnalyticsFunctions = {
21360
21360
 
21361
21361
  this.log.success = true;
21362
21362
  this.log.history.push({
21363
- type: 'success',
21363
+ type: 'authorized',
21364
21364
  message: message,
21365
21365
  time: this.getTimeSpent()
21366
21366
  });
package/lib/checkout.js CHANGED
@@ -21310,8 +21310,8 @@ var AnalyticsFunctions = {
21310
21310
  },
21311
21311
  logAPIResponse: function logAPIResponse(response, channel) {
21312
21312
  switch (response.status) {
21313
- case 'success':
21314
- return this.logSuccess(channel);
21313
+ case 'authorized':
21314
+ return this.logAuthorized(channel);
21315
21315
 
21316
21316
  case 'failed':
21317
21317
  return this.logError(response.message);
@@ -21355,7 +21355,7 @@ var AnalyticsFunctions = {
21355
21355
  });
21356
21356
  return this.saveLog();
21357
21357
  },
21358
- logSuccess: function logSuccess(channel) {
21358
+ logAuthorized: function logAuthorized(channel) {
21359
21359
  var message = 'Successfully preauthorised funds';
21360
21360
 
21361
21361
  if (channel) {
@@ -21364,7 +21364,7 @@ var AnalyticsFunctions = {
21364
21364
 
21365
21365
  this.log.success = true;
21366
21366
  this.log.history.push({
21367
- type: 'success',
21367
+ type: 'authorized',
21368
21368
  message: message,
21369
21369
  time: this.getTimeSpent()
21370
21370
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.28.0-dev.3",
3
+ "version": "1.28.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",