mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
22 lines
409 B
PHP
22 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Ninja\Intents\WebApp;
|
|
|
|
use App\Ninja\Intents\BaseIntent;
|
|
|
|
class ListPaymentIntent extends BaseIntent
|
|
{
|
|
public function process()
|
|
{
|
|
$this->loadStates(ENTITY_PAYMENT);
|
|
|
|
if ($client = $this->requestClient()) {
|
|
$url = $client->present()->url . '#payments';
|
|
} else {
|
|
$url = '/payments';
|
|
}
|
|
|
|
return redirect($url);
|
|
}
|
|
}
|