Skip to content

Commit

Permalink
fix gifcards redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivascu Madalin committed Nov 7, 2023
1 parent 55f8a51 commit 8a1c93f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Magewire/Payment/Method/Giftcards.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public function mount(): void

public function evaluateCompletion(EvaluationResultFactory $resultFactory): EvaluationResultInterface
{
if ($this->canSubmit === false) {

if ($this->canSubmit === false && !$this->isRedirect()) {
return $resultFactory->createErrorMessageEvent()
->withCustomEvent('payment:method:error')
->withMessage('Cannot complete payment with giftcards');
Expand Down

0 comments on commit 8a1c93f

Please sign in to comment.