Skip to main content

Stripe

Go to .env file and add

NGROK_ACTIVE=true

# unique subdomain name - try to put something long, so it will always be free
NGROK_SUBDOMAIN=nevodavid100

Head over to your stripe dashboard and click on "Developers"

Copy the "Secret key"

go to .env file and set

PAYMENT_SERVICE=stripe
PAYMENT_SECRET_KEY=copied secret key

Click on Webhooks and "Add endpoint"

Add your path with "/api/purchase" based on your subdomain from ngrok and click "Select events"

Choose "checkout.session.async_payment_succeeded" and "checkout.session.completed"

Click "Add event" and then "Add endpoint".

Click on the created event

Click on "Reveal" on "Signing key",

copy it and open .env, and add

PAYMENT_SIGNING_SECRET=key

And you are done 🚀