Closed ashdevelops closed 11 months ago
@ashdevelops are you using blade template or SPA? Do your routes have the billable
middleware on them?
Hi @Kyon147 I am using blade templates. Also I am using the default installation routes which states it has billable middleware by default on these ones.
@ashdevelops you still need to add billable
middleware to all the routes including the home route. Otherwise you won't be redirected to the billing screen
Thanks I've added billable, but now auth()->user()
is null when trying to fetch the plan upon installing so I can't confirm if it fixed the charge redirect. Is there a reason for this?
Have you made sure you have both middleware on the route i.e ['billable','verify.shopify']
Going to close this as I can not replicate and it sounds like you might be missing both middleware. Re-open if still an issue.
I have followed everything listed here to enable billing: https://github.com/Kyon147/laravel-shopify/wiki/Creating-a-Billable-App
Expected Behavior
I'm redirected to a charge pre-authorization screen.
Current Behavior
App is installed without charge authorization
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.