Handle expiry date from insurance completed callback #761
This commit is contained in:
parent
708e9a67cc
commit
ac2cf864f2
1 changed files with 2 additions and 5 deletions
|
|
@ -72,11 +72,8 @@ class InsuranceController extends Controller
|
|||
protected function handleAuthenticated($payload)
|
||||
{
|
||||
$obj = $this->getApplication($payload['id']);
|
||||
|
||||
$now = new DateTime;
|
||||
|
||||
// TODO: replacing this with actual callback response once provided
|
||||
$expiry = $now->modify('+1 year');
|
||||
$now = new DateTime();
|
||||
$expiry = DateTime::createFromFormat("Y-m-d", $payload['expiry_date']);
|
||||
|
||||
if (!empty($obj)) {
|
||||
// mark as completed
|
||||
|
|
|
|||
Loading…
Reference in a new issue