Skip to content

Commit a45e232

Browse files
committed
Added some clean up
1 parent 1bca730 commit a45e232

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Message/EMV3DSOrderRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ public function getData()
3030

3131
public function sendData($data)
3232
{
33+
$authorizationHeader = base64_encode("{$this->getMerchantId()}:{$this->getTransactionPassword()}");
34+
3335
$params = [
3436
'headers' => [
3537
'Accept' => '*/*',
3638
'Content-Type' => 'application/json; charset=UTF-8',
37-
'Authorization' => 'Basic '.base64_encode("{$this->getMerchantId()}:{$this->getTransactionPassword()}"),
39+
'Authorization' => "Basic {$authorizationHeader}"
3840
],
3941
'body' => json_encode($data),
4042
];

0 commit comments

Comments
 (0)