Skip to content

Commit

Permalink
fix: entity and transfer code
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Sep 2, 2024
1 parent e47d0c6 commit 9c3e20e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public function transfer(TransactionInterface $transaction): TransferResponse
'TerminalId' => $this->config->getTerminalId(),
],
\GuzzleHttp\RequestOptions::JSON => [
'transferCode' => $transaction->getReference(),
'transferCode' => $this->config->getTransferCodePrefix() . $transaction->getReference(),
'mac' => Mac::generate($transaction),
'initiatingEntityCode' => 'PBL',
'initiatingEntityCode' => $this->config->getEntityCode(),
'initiation' => [
'amount' => (string) $transaction->getCents(),
'currencyCode' => (string) $transaction->getCurrency(),
Expand Down
2 changes: 2 additions & 0 deletions src/Interfaces/ConfigInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ public function getAuthUrl(): string;
public function getUrl(): string;
public function getUsername(): string;
public function getPassword(): string;
public function getEntityCode(): string;
public function getTransferCodePrefix(): string;
public function getTerminalId(): string;
}

0 comments on commit 9c3e20e

Please sign in to comment.