Resolve "Add Paramount insurance and PayMongo support for RESQ2 API" #1699

Merged
arcticzero merged 22 commits from 761-add-paramount-insurance-and-paymongo-support-for-resq2-api into 746-resq-2-0-final 2023-11-17 20:28:03 +00:00
Showing only changes of commit ac2cf864f2 - Show all commits

View file

@ -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