Skip to content

Commit

Permalink
Added some clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sudiptpa committed Dec 8, 2022
1 parent 1bca730 commit a45e232
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Message/EMV3DSOrderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ public function getData()

public function sendData($data)
{
$authorizationHeader = base64_encode("{$this->getMerchantId()}:{$this->getTransactionPassword()}");

$params = [
'headers' => [
'Accept' => '*/*',
'Content-Type' => 'application/json; charset=UTF-8',
'Authorization' => 'Basic '.base64_encode("{$this->getMerchantId()}:{$this->getTransactionPassword()}"),
'Authorization' => "Basic {$authorizationHeader}"
],
'body' => json_encode($data),
];
Expand Down

0 comments on commit a45e232

Please # to comment.