Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nickeblewis's avatar

Trouble subscribing - hangs when clicking subscribe button

I have got Spark set up and running under Homestead and that was pretty straightforward. I have set up some plans on Stripe and have added two of them to the SparkServiceProvider.php as instructed. I have also added my Stripe keys to the .env file.

When I come to enter my test card details on the http://spark-demo.dev/settings#/subscription page and enter the fields required, when I click on the "subscribe" button the spinner appears, it never goes away and nothing happens beyond this point.

Something crashing somewhere but not seeing any messages.

What could be the issue?

Thanks

Nick

0 likes
2 replies
EventFellows's avatar

What error does Google Dev Tools bring up? Maybe try Clockwork add in for Chrome - Jeffrey recommended in one of his videos and it did help me figure out a similar issue with stripe subscriptions.

(I had a typo in the id of the plan to identify it on stripe)

1 like
nickeblewis's avatar

Thanks @EventFellows I shall have a look at that tool but you know what? I sussed out what it was, fixed it and it was the same problem you had, I had copied and pasted my API key and it had included some spurious characters on the end. Now working and all very exciting to explore this project further and do great things with it!

Please or to participate in this conversation.