Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the url link depending on the environment in Business Manager #1176

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,21 @@
</tr>
</thead>
<tbody>
<tr><td class='infobox_title'>PSP reference</td><td class='infobox_item'><A target='new' HREF='https://ca-test.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=${order.custom.Adyen_pspReference}&txType=Payment'><isprint value="${order.custom.Adyen_pspReference}"></A></td></tr>
<tr>
<td class='infobox_title'>PSP reference</td>
<td class='infobox_item'>
<isscript>
var mode : String = dw.system.Site.getCurrent().getCustomPreferenceValue("Adyen_Mode");
var urlPrefixType : String = 'test';
if (mode == 'LIVE') {
urlPrefixType = 'live';
}
</isscript>
<A target='new' HREF='https://ca-${urlPrefixType}.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=${order.custom.Adyen_pspReference}&txType=Payment'>
<isprint value="${order.custom.Adyen_pspReference}">
</A>
</td>
</tr>
<tr><td class='infobox_title'>Payment Method</td><td class='infobox_item'><isprint value="${order.custom.Adyen_paymentMethod}"></td></tr>
<tr><td class='infobox_title'>Eventcode</td><td class='infobox_item'><isprint value="${order.custom.Adyen_eventCode}"></td></tr>
<isif condition="${adyenAdditionalPaymentData != null}">
Expand Down Expand Up @@ -80,4 +94,4 @@
<!-- END: Adyentable


-->
-->
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!--- TEMPLATENAME: paymentInstrumentInfo_Adyen_Component.isml --->

<iscontent type="text/html" charset="UTF-8" compact="true">

<isscript>
Expand Down Expand Up @@ -27,7 +26,21 @@
</tr>
</thead>
<tbody>
<tr><td class='infobox_title'>PSP reference</td><td class='infobox_item'><A target='new' HREF='https://ca-test.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=${order.custom.Adyen_pspReference}&txType=Payment'><isprint value="${order.custom.Adyen_pspReference}"></A></td></tr>
<tr>
<td class='infobox_title'>PSP reference</td>
<td class='infobox_item'>
<isscript>
var mode : String = dw.system.Site.getCurrent().getCustomPreferenceValue("Adyen_Mode");
var urlPrefixType : String = 'test';
if (mode == 'LIVE') {
urlPrefixType = 'live';
}
</isscript>
<A target='new' HREF='https://ca-${urlPrefixType}.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=${order.custom.Adyen_pspReference}&txType=Payment'>
<isprint value="${order.custom.Adyen_pspReference}">
</A>
</td>
</tr>
<tr><td class='infobox_title'>Payment Method</td><td class='infobox_item'><isprint value="${order.custom.Adyen_paymentMethod}"></td></tr>
<tr><td class='infobox_title'>Eventcode</td><td class='infobox_item'><isprint value="${order.custom.Adyen_eventCode}"></td></tr>
<isif condition="${adyenAdditionalPaymentData != null}">
Expand Down Expand Up @@ -90,4 +103,4 @@
</div>
<BR>

<!-- END: Adyentable -->
<!-- END: Adyentable -->
Loading