-
-
Notifications
You must be signed in to change notification settings - Fork 377
V17 Billing Route Not Wokring #872
Comments
No route works in safari, only homepage: "Can only instantiate this object with a string." |
Dealing with the same thing. Not with billing, but with authenticate. Giving the exact same error. |
give examples of code. without this it is impossible to reproduce your problem |
@enmaboya do you using package with turbolinks? |
Found the problem missing shop parameter in the URL |
do you have fix? |
Yes, I think this is not mention in upgrade guide but available in billing section of the wiki |
This is the new |
In v16 only plan param is needed |
Duh, all my routes are broken when using without turbolinks. |
depends on the application. all work the same. and yes, for safari and private mode (e.g. in chrome), you need to pass the second parameter |
But do you have multipages applications (server rendered) without turbolinks, right? |
Where do you pass this parameter? Sort of new to Laravel so I'm kinda confused |
seems like it needs to be added for all links. |
No, for all other links you should have in your layout template and add @sessionToken for post requests |
Could you provide an example of where @include('shopify-app::partials.token_handler') goes in your code and how it's used? |
its included by default in latest version of package, but it doesnt solve anything when using without turbolinks for me |
Yeah I'm in the same boat |
Add ?shop=current-shop.myshopify.com to all your links, this seems to be solving issue |
But, it is not necessary for billing. Simply add the "shop" parameter to the route for billing |
not work out of the box for some reason :( |
Fix with JS:
|
That worked! Thank you so much! :) |
Should work.. I should maybe auto-add |
@osiset Yes that's a good idea. |
'shop' was added automatically to |
InvalidArgumentException
Can only instantiate this object with a string.
The text was updated successfully, but these errors were encountered: