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