invoiceninja/app/Ninja/Intents/WebApp/ListPaymentIntent.php
2017-04-06 16:47:37 +03:00

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);
}
}