Browse Source

PaymentUtils : correctif paramètre $comment

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
fc53503bfb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/logic/Payment/Service/PaymentUtils.php

+ 2
- 2
common/logic/Payment/Service/PaymentUtils.php View File

$this->producerSolver = $this->loadService(ProducerSolver::class); $this->producerSolver = $this->loadService(ProducerSolver::class);
} }


public function creditUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment): void
public function creditUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment = null): void
{ {
$this->paymentBuilder->createPayment( $this->paymentBuilder->createPayment(
Payment::TYPE_CREDIT, Payment::TYPE_CREDIT,
); );
} }


public function debitUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment): void
public function debitUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment = null): void
{ {
$this->paymentBuilder->createPayment( $this->paymentBuilder->createPayment(
Payment::TYPE_DEBIT, Payment::TYPE_DEBIT,

Loading…
Cancel
Save