Check your request type. The error says methodNotAllowed(array('POST', 'PUT', 'DELETE' so maybe you are trying a GET or PATCH?
Chrome Developer Tools would probably give you more clues on where to look. did you setup the webhook correctly.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys, I just bought a copy of Spark and am running into an issue that doesn't seem to be common, at least I haven't found anyone else that has the same issue. Hoping someone here might be able to help.
Ok so I have my test subscriptions setup in SparkServiceProvider.php and I have a copy of these setup in Stripe as well. I am using Stripe's test card, and when I subscribe I get this error "We had trouble validating your card. It's possible your card provider is preventing us from charging the card. Please contact your card provider or customer support.". My console shows: VM687:1 POST http://spark-test.dev/settings/subscription 500 (Internal Server Error)
In stripe, the subscription is there and it says the charge went through. The JSON response body looks good, no problem. Now back on my spark site, if I refresh the browser then it shows that my current plan is the one I just subscribed to.
I get the same thing if I try to cancel or if I try to change the subscription, the 500 server error.
This is the Laravel error screen for settings/subscription:
in RouteCollection.php line 251 at RouteCollection->methodNotAllowed(array('POST', 'PUT', 'DELETE')) in RouteCollection.php line 238 at RouteCollection->getRouteForMethods(object(Request), array('POST', 'PUT', 'DELETE')) in RouteCollection.php line 176 at RouteCollection->match(object(Request)) in Router.php line 533 at Router->findRoute(object(Request)) in Router.php line 512 at Router->dispatchToRoute(object(Request)) in Router.php line 498 at Router->dispatch(object(Request)) in Kernel.php line 174 at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 30 at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 46 at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148 at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 53 at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 102 at Pipeline->then(object(Closure)) in Kernel.php line 149 at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116 at Kernel->handle(object(Request)) in index.php line 53
Please or to participate in this conversation.