Getting ready for production deployment for phase 2 of Voucherify

This commit is contained in:
Dillon
2023-07-28 15:58:28 +08:00
parent a88a194b95
commit 195aa4f8f1
2 changed files with 3 additions and 3 deletions
@@ -82,7 +82,7 @@ class AuthenticationProcessor
}
//cief todo: case study 1
//$this->checkMilestonesForRewardProcessor->execute($user, [Milestones::MILESTONE_1]);
$this->checkMilestonesForRewardProcessor->execute($user, [Milestones::MILESTONE_1]);
return ['access_token' => $this->generatesAuthenticationToken->execute($user), 'redirect_url' => $this->authenticationRedirect->url($user)];
}
@@ -47,8 +47,8 @@ class CreatesVoucherifyVoucher
"metadata" => [
"email" => $user->email
],
"start_date" => $startDate->format('Y-m-d H:i:s'),
"expiration_date" => $expirationDate->format('Y-m-d H:i:s')
"start_date" => $startDate->toIso8601String(),
"expiration_date" => $expirationDate->toIso8601String()
]);
return $result;
} catch (\Voucherify\ClientException $e) {