@paystack/checkout-js 1.56.0-beta.1 → 1.57.0-beta.1
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 +14 -1
- package/es/checkout.js +14 -1
- package/lib/checkout.js +14 -1
- package/package.json +1 -1
package/dist/checkout.js
CHANGED
|
@@ -12393,7 +12393,20 @@ var Paystack = (function (exports) {
|
|
|
12393
12393
|
return axiosInstance.post(url, urlEncodedParams, {
|
|
12394
12394
|
headers: headers
|
|
12395
12395
|
}).then(function (response) {
|
|
12396
|
-
|
|
12396
|
+
var _raw$data;
|
|
12397
|
+
var raw = response.data;
|
|
12398
|
+
/*
|
|
12399
|
+
* A googlepay step-up is always 3DS, but the charge response can omit
|
|
12400
|
+
* the `auth` field the shared parser routes on — without it an auth
|
|
12401
|
+
* response falls through to error(). Default it so the response
|
|
12402
|
+
* normalizes through auth() exactly like card's.
|
|
12403
|
+
*/
|
|
12404
|
+
if ((raw === null || raw === void 0 ? void 0 : raw.status) === 'auth' && !raw.auth && !((_raw$data = raw.data) !== null && _raw$data !== void 0 && _raw$data.auth)) {
|
|
12405
|
+
return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
|
|
12406
|
+
auth: '3DS'
|
|
12407
|
+
}));
|
|
12408
|
+
}
|
|
12409
|
+
return ChargeResponses.parse(raw);
|
|
12397
12410
|
});
|
|
12398
12411
|
}
|
|
12399
12412
|
};
|
package/es/checkout.js
CHANGED
|
@@ -12390,7 +12390,20 @@ var GooglePayAPI = {
|
|
|
12390
12390
|
return axiosInstance.post(url, urlEncodedParams, {
|
|
12391
12391
|
headers: headers
|
|
12392
12392
|
}).then(function (response) {
|
|
12393
|
-
|
|
12393
|
+
var _raw$data;
|
|
12394
|
+
var raw = response.data;
|
|
12395
|
+
/*
|
|
12396
|
+
* A googlepay step-up is always 3DS, but the charge response can omit
|
|
12397
|
+
* the `auth` field the shared parser routes on — without it an auth
|
|
12398
|
+
* response falls through to error(). Default it so the response
|
|
12399
|
+
* normalizes through auth() exactly like card's.
|
|
12400
|
+
*/
|
|
12401
|
+
if ((raw === null || raw === void 0 ? void 0 : raw.status) === 'auth' && !raw.auth && !((_raw$data = raw.data) !== null && _raw$data !== void 0 && _raw$data.auth)) {
|
|
12402
|
+
return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
|
|
12403
|
+
auth: '3DS'
|
|
12404
|
+
}));
|
|
12405
|
+
}
|
|
12406
|
+
return ChargeResponses.parse(raw);
|
|
12394
12407
|
});
|
|
12395
12408
|
}
|
|
12396
12409
|
};
|
package/lib/checkout.js
CHANGED
|
@@ -12394,7 +12394,20 @@ var GooglePayAPI = {
|
|
|
12394
12394
|
return axiosInstance.post(url, urlEncodedParams, {
|
|
12395
12395
|
headers: headers
|
|
12396
12396
|
}).then(function (response) {
|
|
12397
|
-
|
|
12397
|
+
var _raw$data;
|
|
12398
|
+
var raw = response.data;
|
|
12399
|
+
/*
|
|
12400
|
+
* A googlepay step-up is always 3DS, but the charge response can omit
|
|
12401
|
+
* the `auth` field the shared parser routes on — without it an auth
|
|
12402
|
+
* response falls through to error(). Default it so the response
|
|
12403
|
+
* normalizes through auth() exactly like card's.
|
|
12404
|
+
*/
|
|
12405
|
+
if ((raw === null || raw === void 0 ? void 0 : raw.status) === 'auth' && !raw.auth && !((_raw$data = raw.data) !== null && _raw$data !== void 0 && _raw$data.auth)) {
|
|
12406
|
+
return ChargeResponses.parse(_objectSpread2(_objectSpread2({}, raw), {}, {
|
|
12407
|
+
auth: '3DS'
|
|
12408
|
+
}));
|
|
12409
|
+
}
|
|
12410
|
+
return ChargeResponses.parse(raw);
|
|
12398
12411
|
});
|
|
12399
12412
|
}
|
|
12400
12413
|
};
|