2019-06-07 06:54:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
2020-02-01 11:12:31 +00:00
|
|
|
use App\Classes\External\Payments\Ezypay;
|
2021-07-29 03:11:14 +00:00
|
|
|
use App\Jobs\PaymentsImport as Job;
|
2019-06-07 06:54:27 +00:00
|
|
|
|
2020-02-01 11:12:31 +00:00
|
|
|
class PaymentsEzypayImport extends Command
|
2019-06-07 06:54:27 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name and signature of the console command.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-02-01 11:12:31 +00:00
|
|
|
protected $signature = 'payments:ezypay:import';
|
2019-06-07 06:54:27 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = 'Retrieve payments from Ezypay';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the console command.
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
2021-07-29 03:11:14 +00:00
|
|
|
Job::dispatchSync(new Ezypay);
|
2019-06-07 06:54:27 +00:00
|
|
|
}
|
2019-06-07 13:47:37 +00:00
|
|
|
}
|