From dddc316c5483acac11d4fa80463f0e2ca92a3674 Mon Sep 17 00:00:00 2001 From: Ivan Stasiuk Date: Mon, 26 Feb 2024 10:17:12 +0000 Subject: [PATCH] fix: amount and ref --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 6e4524b..7549036 100644 --- a/src/Client.php +++ b/src/Client.php @@ -87,12 +87,12 @@ public function send(TransactionInterface $transaction): ?Response ->withUseSingleDebitMultipleCredit(true) ->withTransactionRequest( (new ArrayOfTransaction())->withTransaction((new Transaction()) - ->withAmount($transaction->getAmount()) + ->withAmount((string)$transaction->getAmount()) ->withBeneficiaryAccount($transaction->getRecipientBankAccount()) ->withBeneficiaryBankCode($transaction->getRecipientBankCode()) ->withBeneficiaryName($transaction->getRecipientName()) ->withDebitAccount($this->config->getDebitAccount()) - ->withTransactionRef($transaction->getAmount()) + ->withTransactionRef($transaction->getReference()) ->withPaymentDueDate($transaction->getDueDate()->format(''))) ) ))->getSendRequestResult();