Expected Behavior
Should process payment via BillingController@process and get redirected user back to home.
Current Behavior
I get redirected to Shopify's payment approval.
I accept payment.
I get Laravel's 404 error page. My User is still hasshopify_freemium set to true, and no plan_id is assigned.
I do however get an email from Shopify saying that I've approved a recorruing charge.
Steps to reproduce
I set prefix to 'shopify-app'
I enable billing and enable freemium.
I redirect user here:
$subscribeUrl = route(
Util::getShopifyConfig('route_names.billing'),
array_merge($request->input(), [
'shop' => $shop->getDomain()->toNative(),
'host' => $request->get('host'),
'plan' => Plan::where('name', 'default')->value('id'),
])
);
It shows the right price. I accept it.
I get Laravel's 404.
Context
- Package Version: v21.1
- Laravel Version: v11.0
- PHP Version: v8.2
- Template Engine: React, but with real redirects (no spa active)
- Using a toolset (Docker, Laradock, Vagrant, etc.): Docker, Sail, Ngrok
Failure Logs
Laravel debug bar shows:
The route billing/process/2 could not be found.
vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php#44
Expected Behavior
Should process payment via
BillingController@processand get redirected user back to home.Current Behavior
I get redirected to Shopify's payment approval.
I accept payment.
I get Laravel's 404 error page. My User is still has
shopify_freemiumset totrue, and noplan_idis assigned.I do however get an email from Shopify saying that I've approved a recorruing charge.
Steps to reproduce
I set prefix to
'shopify-app'I enable billing and enable freemium.
I redirect user here:
It shows the right price. I accept it.
I get Laravel's 404.
Context
Failure Logs
Laravel debug bar shows: