Payment Methods
This guide shows you how to integrate your Stripe API keys and Webhook with WeaveAI.
Stripe Integration
Section titled “Stripe Integration”Getting your API keys
Section titled “Getting your API keys”- Log in to the Stripe Dashboard
- Navigate to Developers → API Keys section
- Copy your API keys (Publishable key and Secret key) based on your environment, Live or Test
Setting up the Webhook Secret
Section titled “Setting up the Webhook Secret”- In the Stripe Dashboard, go to Developers → Webhooks
- Click + Add destination
- Select the following options:
- Events from:
Your account - API version:
2025-* - Events:
- checkout.session.completed
- customer.subscription.created
- customer.subscription.updated
- customer.subscription.deleted
- invoice.payment_succeeded
- invoice.payment_failed
- Events from:
- Click Continue
- Select Webhook endpoint as the Destination type and click Continue
- Provide a name and description for the webhook, and under Endpoint URL, add this:
https://your-domain-url/api/stripe/webhook
- Click Create destination
- After creation, click on the webhook endpoint to view details, reveal and copy the Signing secret
Add the values to the WeaveAI admin dashboard
Section titled “Add the values to the WeaveAI admin dashboard”In the Admin Dashboard → Site Settings → Payment Methods section, add the following details:
- Stripe Publishable Key
- Stripe Secret Key
- Stripe Webhook Secret