34 lines
724 B
PHP
34 lines
724 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\Payment\SystempayCreditTransactionUpdate;
|
|
use Illuminate\Console\Command;
|
|
|
|
class SystempayCreditTransactionUpdateCommand extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'systempay:update_credit_transactions';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Update Systempay credit transaction statuses';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return inteager
|
|
*/
|
|
public function handle()
|
|
{
|
|
\dispatch_sync(new SystempayCreditTransactionUpdate());
|
|
return 0;
|
|
}
|
|
}
|