Moonbase Documentation

Stripe Setup

Create a Stripe webhook and provide your secret key.

1. Get your Stripe secret key

Create a Stripe account and copy the secret key from the dashboard.

2. Create a webhook

Set the destination URL to your API host:

http://<your-host>:80/api/purchase/webhook

3. Enable the checkout event

Subscribe to:

  • checkout.session.completed

Use your real domain

If your API is public, use your domain and HTTPS. Stripe must be able to reach the URL from the internet.

On this page