Skip to content

Commit 4e246c2

Browse files
committed
Fix user ID reference in PaymentProcessingCoinsJob for payment validation and job dispatching
1 parent c145fd3 commit 4e246c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Jobs/PaymentProcessingCoinsJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function handle(): void
5757
"reference" => $this->reference
5858
]);
5959
// On redéclenche le job avec les mêmes données, pas d'objet Request
60-
Self::dispatch($this->amount, $this->reference)->delay(now()->addSeconds(15));
60+
Self::dispatch($this->amount,$this->userId, $this->reference)->delay(now()->addSeconds(15));
6161
}
6262
if (isset($responseStatus) && $responseStatus === "FAILED" || $responseStatus === "CANCELED") {
6363

@@ -66,7 +66,7 @@ public function handle(): void
6666
}
6767

6868
if (isset($responseStatus) && $responseStatus == 'SUCCESS') {
69-
(new ValidatePaymentCoinService())->handle($this->reference,$this->amount,$this->$userId);
69+
(new ValidatePaymentCoinService())->handle($this->reference,$this->amount,$this->userId);
7070
}
7171

7272
}

0 commit comments

Comments
 (0)