@paystack/checkout-js 1.57.0-beta.2 → 1.57.0-beta.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 +6 -1
- package/es/checkout.js +6 -1
- package/lib/checkout.js +6 -1
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -6508,7 +6508,7 @@ var Paystack = (function (exports) {
|
|
|
6508
6508
|
if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
|
|
6509
6509
|
return this.getCleanResponse(response, 'Incorrect amount sent');
|
|
6510
6510
|
}
|
|
6511
|
-
if (response.status
|
|
6511
|
+
if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
|
|
6512
6512
|
return this.getCleanResponse(response);
|
|
6513
6513
|
}
|
|
6514
6514
|
if (response.auth && response.auth !== 'none') {
|
|
@@ -21255,6 +21255,11 @@ var Paystack = (function (exports) {
|
|
|
21255
21255
|
return this.logError(response.message);
|
|
21256
21256
|
case 'auth':
|
|
21257
21257
|
return this.logAuth(response.data.auth);
|
|
21258
|
+
case 'awaiting_ussd_confirmation':
|
|
21259
|
+
// The customer has been shown the USSD prompt but has not dialled yet. Logging
|
|
21260
|
+
// it gives the funnel denominator for the `pending` entry the confirmation
|
|
21261
|
+
// event writes when they do.
|
|
21262
|
+
return this.logAPIResponseMessage(response.message);
|
|
21258
21263
|
default:
|
|
21259
21264
|
return false;
|
|
21260
21265
|
}
|
package/es/checkout.js
CHANGED
|
@@ -6505,7 +6505,7 @@ var ChargeResponses = {
|
|
|
6505
6505
|
if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
|
|
6506
6506
|
return this.getCleanResponse(response, 'Incorrect amount sent');
|
|
6507
6507
|
}
|
|
6508
|
-
if (response.status
|
|
6508
|
+
if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
|
|
6509
6509
|
return this.getCleanResponse(response);
|
|
6510
6510
|
}
|
|
6511
6511
|
if (response.auth && response.auth !== 'none') {
|
|
@@ -21252,6 +21252,11 @@ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics
|
|
|
21252
21252
|
return this.logError(response.message);
|
|
21253
21253
|
case 'auth':
|
|
21254
21254
|
return this.logAuth(response.data.auth);
|
|
21255
|
+
case 'awaiting_ussd_confirmation':
|
|
21256
|
+
// The customer has been shown the USSD prompt but has not dialled yet. Logging
|
|
21257
|
+
// it gives the funnel denominator for the `pending` entry the confirmation
|
|
21258
|
+
// event writes when they do.
|
|
21259
|
+
return this.logAPIResponseMessage(response.message);
|
|
21255
21260
|
default:
|
|
21256
21261
|
return false;
|
|
21257
21262
|
}
|
package/lib/checkout.js
CHANGED
|
@@ -6509,7 +6509,7 @@ var ChargeResponses = {
|
|
|
6509
6509
|
if (response.status === 'incorrect-amount-sent' || response.message_type === 'INCORRECT_AMOUNT') {
|
|
6510
6510
|
return this.getCleanResponse(response, 'Incorrect amount sent');
|
|
6511
6511
|
}
|
|
6512
|
-
if (response.status
|
|
6512
|
+
if (['awaiting_registration_token', 'awaiting_ussd_confirmation'].includes(response.status)) {
|
|
6513
6513
|
return this.getCleanResponse(response);
|
|
6514
6514
|
}
|
|
6515
6515
|
if (response.auth && response.auth !== 'none') {
|
|
@@ -21256,6 +21256,11 @@ var AnalyticsFunctions$1 = _objectSpread2(_objectSpread2({}, CapitecPayAnalytics
|
|
|
21256
21256
|
return this.logError(response.message);
|
|
21257
21257
|
case 'auth':
|
|
21258
21258
|
return this.logAuth(response.data.auth);
|
|
21259
|
+
case 'awaiting_ussd_confirmation':
|
|
21260
|
+
// The customer has been shown the USSD prompt but has not dialled yet. Logging
|
|
21261
|
+
// it gives the funnel denominator for the `pending` entry the confirmation
|
|
21262
|
+
// event writes when they do.
|
|
21263
|
+
return this.logAPIResponseMessage(response.message);
|
|
21259
21264
|
default:
|
|
21260
21265
|
return false;
|
|
21261
21266
|
}
|