Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 14, 2024
1 parent 4bd5623 commit 8550511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Gateway/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ public function getCaptureUrl(Order $order): string
*/
public function getSuccessUrl(Order $order): string
{
return str_replace(['{order}'], [$order->uuid], $this->config['success_url'] ?? '/');
return URL::to(str_replace(['{order}'], [$order->uuid], $this->config['success_url'] ?? '/'));
}

/**
* Get the failure URL.
*/
public function getFailureUrl(Order $order): string
{
return str_replace(['{order}'], [$order->uuid], $this->config['failure_url'] ?? '/');
return URL::to(str_replace(['{order}'], [$order->uuid], $this->config['failure_url'] ?? '/'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Gateway/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ public function toResponse($request): BaseResponse
new JsonResponse($this->toArray());
}

new RedirectResponse($this->url);
return new RedirectResponse($this->url);
}
}

0 comments on commit 8550511

Please sign in to comment.