Update to get an individual payment from intuit
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Intuit\Exceptions\ConnectionIssueException;
|
||||
|
||||
use App\Jobs\AccountingPaymentSync as Job;
|
||||
use App\Models\{ProviderOauth,Site,User};
|
||||
|
||||
class AccountingPaymentGet extends Command
|
||||
@@ -47,12 +48,16 @@ class AccountingPaymentGet extends Command
|
||||
|
||||
try {
|
||||
$api = $to->API();
|
||||
dump($api->getPaymentQuery($this->argument('id')));
|
||||
$acc = $api->getPayment($this->argument('id'));
|
||||
dump($acc);
|
||||
|
||||
} catch (ConnectException|ConnectionIssueException $e) {
|
||||
$this->error($e->getMessage());
|
||||
|
||||
return Command::FAILURE;
|
||||
}
|
||||
|
||||
if ($acc)
|
||||
Job::dispatchSync($to,$acc);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user