@@ -59,9 +59,7 @@ private function buildRequest(): Request
5959 $ this ->userSignatureHandler ->handle ($ signatureData , $ this ->transaction ->getDigest ());
6060
6161 $ signatureVersion = $ this ->context ->getKeyring ()->getUserSignatureAVersion ();
62- $ dataDigest = $ this ->requestFactory ->userSignA (
63- $ this ->transaction ->getDigest ()
64- );
62+ $ dataDigest = $ this ->orderDataHandler ->hash ($ this ->orderData ->getContent ());
6563
6664 $ this ->context
6765 ->setOrderType ('BTU ' )
@@ -117,11 +115,7 @@ private function buildRequest(): Request
117115 );
118116 })
119117 ->addSignatureData ($ this ->context ->getSignatureData (), $ this ->context ->getTransactionKey ())
120- ->addDataDigest (
121- $ this ->context ->getSignatureVersion (),
122- $ this ->context ->getDataDigest ()
123- )
124- ->addAdditionalOrderInfo ();
118+ ->addDataDigest ($ this ->context ->getSignatureVersion (), $ this ->context ->getDataDigest ());
125119 });
126120 });
127121 })
@@ -164,12 +158,12 @@ private function addBTUOrderParams(OrderDetailsBuilder $orderDetailsBuilder): vo
164158 $ xmlMsgName ->setAttribute ('format ' , $ this ->btuContext ->getMsgNameFormat ());
165159 }
166160
167- if (true === $ this ->btuContext -> getSignatureFlag ()) {
161+ if ($ this ->context -> getWithES ()) {
168162 $ xmlSignatureFlag = $ orderDetailsBuilder ->appendEmptyElementTo ('SignatureFlag ' , $ xmlBTUOrderParams );
169163
170- if (true === $ this ->btuContext ->getSignatureFlagEds ()) {
171- $ xmlSignatureFlag ->setAttribute ('requestEDS ' , 'true ' );
172- }
164+ $ xmlSignatureFlag ->setAttribute ('requestEDS ' , 'true ' );
173165 }
166+
167+ $ orderDetailsBuilder ->addParameters ($ xmlBTUOrderParams , $ this ->btuContext ->getParameters ());
174168 }
175169}
0 commit comments