From 22f4bf254c421c90785bbd593b5115e875a2af82 Mon Sep 17 00:00:00 2001 From: Paul Andrieux Date: Tue, 9 Apr 2019 17:33:54 +0200 Subject: [PATCH] Update WalletHelper.php --- Helper/WalletHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/WalletHelper.php b/Helper/WalletHelper.php index f725f9e..2da7402 100644 --- a/Helper/WalletHelper.php +++ b/Helper/WalletHelper.php @@ -77,11 +77,11 @@ public function createTransfer(UserInterface $debitedUser, UserInterface $credit $tranfer->CreditedUserId = $creditedUser->getMangoUserId(); $debited = new Money(); - $debited->Amount = $debited; + $debited->Amount = $debitedAmount; $debited->Currency = 'EUR'; $fees = new Money(); - $fees->Amount = $fees; + $fees->Amount = $feesAmount; $fees->Currency = 'EUR'; $tranfer->DebitedFunds = $debited;