@paystack/checkout-js 1.25.0-dev.5 → 1.25.0-dev.7
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 +5 -1
- package/es/checkout.js +5 -1
- package/lib/checkout.js +5 -1
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -6568,7 +6568,7 @@ var Paystack = (function (exports) {
|
|
|
6568
6568
|
delete response.data;
|
|
6569
6569
|
}
|
|
6570
6570
|
|
|
6571
|
-
if (['true', true, 'success'].includes(response.status)) {
|
|
6571
|
+
if (['true', true, 'success', 'authorized'].includes(response.status)) {
|
|
6572
6572
|
return this.success(response);
|
|
6573
6573
|
}
|
|
6574
6574
|
|
|
@@ -21326,6 +21326,10 @@ var Paystack = (function (exports) {
|
|
|
21326
21326
|
return PreauthorisationAPI.requery({
|
|
21327
21327
|
reference: this.reference,
|
|
21328
21328
|
publicKey: this.merchant.key
|
|
21329
|
+
}).then(function (response) {
|
|
21330
|
+
return _objectSpread2(_objectSpread2({}, response), {}, {
|
|
21331
|
+
data: response
|
|
21332
|
+
});
|
|
21329
21333
|
});
|
|
21330
21334
|
}
|
|
21331
21335
|
}, {
|
package/es/checkout.js
CHANGED
|
@@ -6565,7 +6565,7 @@ var ChargeResponses = {
|
|
|
6565
6565
|
delete response.data;
|
|
6566
6566
|
}
|
|
6567
6567
|
|
|
6568
|
-
if (['true', true, 'success'].includes(response.status)) {
|
|
6568
|
+
if (['true', true, 'success', 'authorized'].includes(response.status)) {
|
|
6569
6569
|
return this.success(response);
|
|
6570
6570
|
}
|
|
6571
6571
|
|
|
@@ -21323,6 +21323,10 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
|
|
|
21323
21323
|
return PreauthorisationAPI.requery({
|
|
21324
21324
|
reference: this.reference,
|
|
21325
21325
|
publicKey: this.merchant.key
|
|
21326
|
+
}).then(function (response) {
|
|
21327
|
+
return _objectSpread2(_objectSpread2({}, response), {}, {
|
|
21328
|
+
data: response
|
|
21329
|
+
});
|
|
21326
21330
|
});
|
|
21327
21331
|
}
|
|
21328
21332
|
}, {
|
package/lib/checkout.js
CHANGED
|
@@ -6569,7 +6569,7 @@ var ChargeResponses = {
|
|
|
6569
6569
|
delete response.data;
|
|
6570
6570
|
}
|
|
6571
6571
|
|
|
6572
|
-
if (['true', true, 'success'].includes(response.status)) {
|
|
6572
|
+
if (['true', true, 'success', 'authorized'].includes(response.status)) {
|
|
6573
6573
|
return this.success(response);
|
|
6574
6574
|
}
|
|
6575
6575
|
|
|
@@ -21327,6 +21327,10 @@ var PreauthorizationInstance = /*#__PURE__*/function () {
|
|
|
21327
21327
|
return PreauthorisationAPI.requery({
|
|
21328
21328
|
reference: this.reference,
|
|
21329
21329
|
publicKey: this.merchant.key
|
|
21330
|
+
}).then(function (response) {
|
|
21331
|
+
return _objectSpread2(_objectSpread2({}, response), {}, {
|
|
21332
|
+
data: response
|
|
21333
|
+
});
|
|
21330
21334
|
});
|
|
21331
21335
|
}
|
|
21332
21336
|
}, {
|