diff --git a/src/Http/Middleware/EnsureShopifyInstalled.php b/src/Http/Middleware/EnsureShopifyInstalled.php index 266a113..d4fe0b6 100644 --- a/src/Http/Middleware/EnsureShopifyInstalled.php +++ b/src/Http/Middleware/EnsureShopifyInstalled.php @@ -6,6 +6,7 @@ use Codelayer\LaravelShopifyIntegration\Events\ShopifyAppInstalled; use Codelayer\LaravelShopifyIntegration\Lib\EnsureBilling; use Codelayer\LaravelShopifyIntegration\Lib\ShopifyOAuth; +use Codelayer\LaravelShopifyIntegration\Lib\TopLevelRedirection; use Codelayer\LaravelShopifyIntegration\Models\ShopifySession; use Illuminate\Http\Request; use Shopify\Context; @@ -40,7 +41,7 @@ public function handle(Request $request, Closure $next) ); if (! $hasPayment) { - return redirect($confirmationUrl); + return TopLevelRedirection::redirect($request, $confirmationUrl); } }