Skip to content

Commit

Permalink
Change the url link depending on the environment in Business Manager (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
amihajlovski authored Sep 20, 2024
1 parent 5a92233 commit cfc6d4a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
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 -->

0 comments on commit cfc6d4a

Please sign in to comment.