Skip to content

Getting Laravel's 404 page after recurring plan payment accepted. #367

Description

@ignacio-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions