voucherifyClient = createVoucherifyClient(); } /** * @param string $redemptionId * @return null|object * @throws \Voucherify\ClientException */ public function execute(string $redemptionId) { try { $result = $this->voucherifyClient->redemptions->get($redemptionId); return $result; } catch (\Voucherify\ClientException $e) { Log::error('FetchesVoucherifyRedemption '.$e); return null; } } }