Skip to content

Commit

Permalink
fix: payment orderId incorrectly includes square brackets and single …
Browse files Browse the repository at this point in the history
…quotes
  • Loading branch information
MLenterman committed Apr 19, 2024
1 parent 8ad6dfc commit 0fda936
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/main/configurations/bpel/Common/xsl/GetOrderId.xslt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<xsl:stylesheet exclude-result-prefixes="xs xsl zgw" version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
xmlns:zgw="http://google.com/zgw"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" exclude-result-prefixes="xsi"/>
<xsl:mode on-no-match="deep-skip" on-multiple-match="fail"/>

<xsl:template match="/">
<xsl:value-of select="substring(., 2, string-length(.) -2)" />
</xsl:template>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@
name="StoreCaseReferenceNumberFromRegisterResponse"
>
<Param name="CaseReferenceNumber" sessionKey="RegisterResponseMessage" xpathExpression="//*:referenceNumber" />
<Param name="PaymentOrderId" sessionKey="UnwrappedMessage" xpathExpression="/ZgwObject/payment/public_order_ids" />
<Param name="PaymentOrderId" xpathExpression="substring($PublicOrderId, 2, string-length($PublicOrderId) - 2)">
<Param name="PublicOrderId" sessionKey="UnwrappedMessage" xpathExpression="/ZgwObject/payment/public_order_ids" type="DOMDOC" />
</Param>
<Forward name="success" path="UpdateInitiatorSubjectCommandSender" />
</PutInSessionPipe>

Expand Down

0 comments on commit 0fda936

Please sign in to comment.