Skip to content

Commit

Permalink
Fix redirect if billing is required after install
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdierich committed May 14, 2024
1 parent 2153360 commit 6a3056a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Middleware/EnsureShopifyInstalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -40,7 +41,7 @@ public function handle(Request $request, Closure $next)
);

if (! $hasPayment) {
return redirect($confirmationUrl);
return TopLevelRedirection::redirect($request, $confirmationUrl);
}
}

Expand Down

0 comments on commit 6a3056a

Please sign in to comment.