Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/WalletPayment.php
Show All 38 Lines | class WalletPayment implements ShouldQueue | ||||
/** | /** | ||||
* Execute the job. | * Execute the job. | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
if (!$this->wallet->balance < 0) { | if ($this->wallet->balance < 0) { | ||||
PaymentsController::directCharge($this->wallet, $this->wallet->balance * -1); | PaymentsController::directCharge($this->wallet, $this->wallet->balance * -1); | ||||
} | } | ||||
} | } | ||||
} | } |