Skip to content

Commit

Permalink
added try & catch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbinaBaraliu committed Dec 4, 2024
1 parent 5b19645 commit ed7f5dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Magewire/Payment/Method/Applepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@ public function evaluateCompletion(EvaluationResultFactory $resultFactory): Eval
return $resultFactory->createSuccess();
}

public function getJsSdkUrl(): string
public function getJsSdkUrl()
{
return $this->assetRepo->getUrl('Buckaroo_HyvaCheckout::js/applepay.js');
try {
return $this->assetRepo->getUrl('Buckaroo_HyvaCheckout::js/applepay.js');
} catch (LocalizedException $exception) {
$this->dispatchErrorMessage($exception->getMessage());
}
}


Expand Down

0 comments on commit ed7f5dd

Please sign in to comment.