Stripe checkout not working in local development installation

Hi,

maybe smth went wrong or you didn’t start ghost with the webhook properly.

  1. install stripe cli (Get started with the Stripe CLI | Stripe Documentation)
    i did it via apt-get, but it’s up to you
  2. pair stripe-cli with stripe account
    $ stripe login
    you will be prompted with a pairing code and a URL
    visit the URL and allow access
  3. set your stripe-cli to listen
    stripe listen --forward-to http://localhost:2368/members/webhooks/stripe/
    you will be prompted with a webhook signing secret
  4. finally, start your ghost enviroment with your individual webhook secret
    WEBHOOK_SECRET=whsec_1234567890abcdefg ghost start

important: stripe listen has to run in it’s own terminal window, so don’t close it. Start ghost with the webhook in a new terminal window/tab instead.

Terminal window 1:

Terminal window 2:

For recurring sessions, you only need to start the stripe listen process in window 1 and start ghost with webhook in window 2. stripe login is only needed the first time.

1 Like