@sonic-equipment/ui 248.0.1 → 248.0.3
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.
|
@@ -140,16 +140,14 @@ function getAndRemoveAdyenQueryParams() {
|
|
|
140
140
|
return {};
|
|
141
141
|
const params = qs.parse(window.location.search || '');
|
|
142
142
|
const { amount, customerId, redirectResult } = params;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
delete params['amount'];
|
|
146
|
-
delete params['customerId'];
|
|
147
|
-
history?.pushState({}, '', `${window.location.pathname}${qs.stringify(params) ? `?${qs.stringify(params)}` : ''}`);
|
|
148
|
-
}
|
|
143
|
+
// eslint-disable-next-line no-console
|
|
144
|
+
console.log('adyenQueryParam', { amount, customerId, redirectResult });
|
|
149
145
|
return { amount, customerId, redirectResult };
|
|
150
146
|
}
|
|
151
147
|
async function handlePaymentResponse(result, onSubmit, onError) {
|
|
152
148
|
try {
|
|
149
|
+
// eslint-disable-next-line no-console
|
|
150
|
+
console.log({ result });
|
|
153
151
|
if (result.action) {
|
|
154
152
|
if (result.action.type === 'redirect') {
|
|
155
153
|
return handleRedirectPaymentAction(result);
|