Skip to content

Commit 039585c

Browse files
Merge pull request #12 from cybersource-tpi/TLTPIATX-555
Tltpiatx 555
2 parents 0b37414 + 5964798 commit 039585c

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed
26 KB
Binary file not shown.

packages/server-extension/config/app.prod.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"logging.webhook.http": true,
99
"logging.api.error": true,
1010
"logging.api.access": true,
11-
"payments.secret.key": "3ftGntd9GSnlTJ+pWddY7xBgL9tx3VlwqJjW8h79nvD8qJsJ0gUBv32Pc2kYbFLDvfSwPzEOA3NE2NHyRbv1iw=="
11+
"payments.secret.key": "eAGpAMAGj2wmssjvREMe1a/LGXvB/VC+B1ZV+QMc+NA4xTgpqMw4AjQRSQhEkgxEDuHgWY6nvBqx7cAaR+bPaA=="
1212
}

plugins/components/isv-checkout-continue-to-review-order-button/index.jsx

+7
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ const IsvCheckoutContinueToReviewOrderButton = props => {
402402

403403
});
404404
}
405+
405406
useEffect(() => {
406407
if (!payerAuthEnabled) return;
407408
const xhr = new XMLHttpRequest();
@@ -419,6 +420,12 @@ const IsvCheckoutContinueToReviewOrderButton = props => {
419420
};
420421
xhr.send();
421422
}, [payerAuthEnabled])
423+
424+
useEffect(() => {
425+
if (self != top) {
426+
top.location = encodeURI(self.location);
427+
}
428+
}, []);
422429

423430
return (
424431
<>

plugins/components/isv-checkout-place-order-button/index.jsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
** Copyright (c) 2020 Oracle and/or its affiliates.
33
*/
44
import { StoreContext, OrderContext, ContainerContext } from '@oracle-cx-commerce/react-ui/contexts';
5-
import React, { useState, useContext } from 'react';
5+
import React, { useState, useContext, useEffect } from 'react';
66
import Styled from '@oracle-cx-commerce/react-components/styled';
77
import css from '@oracle-cx-commerce/react-widgets/checkout/checkout-place-order-button/styles.css';
88
import {
@@ -323,6 +323,12 @@ const IsvCheckoutPlaceOrderButton = props => {
323323
}
324324
};
325325

326+
useEffect(() => {
327+
if (self != top) {
328+
top.location = encodeURI(self.location);
329+
}
330+
}, []);
331+
326332
return (
327333
<>
328334
{stepUpData &&

plugins/components/isv-payment-method/index.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ const IsvPaymentMethod = props => {
8080
}
8181
}, [deviceFingerprint]);
8282

83+
useEffect(() => {
84+
if (self != top) {
85+
top.location = encodeURI(self.location);
86+
}
87+
}, []);
88+
8389
const [isvSelectedGenericPayment, setIsvSelectedGenericPayment] = useState();
8490

8591
if (isError) {

0 commit comments

Comments
 (0)