new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

chargebee/webhooks

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Chargebee webhook events automatically processed

The plugin automatically processes: subscription_created (creates subscription), subscription_activated (updates subscription to active), subscription_changed (updates on changes), subscription_renewed (updates on renewal), subscription_started (updates when trial ends), subscription_cancelled (marks as cancelled), subscription_cancellation_scheduled (updates with scheduled details), customer_deleted (removes customer and subscriptions).

Chargebee webhook basic auth setup

If webhookUsername and webhookPassword are set in plugin config, configure same Basic Authentication credentials in Chargebee webhook settings. For local development with ngrok tunnel: ngrok http 3000, then configure webhook URL as https://your-ngrok-url/api/auth/chargebee/webhook with same Basic Auth credentials.

Chargebee webhook events custom handling

Custom webhook events can be handled using webhookHandler: chargebee({ chargebeeClient, createCustomerOnSignUp: true, webhookHandler: (handler: WebhookHandler) => { handler.on(WebhookEventType.PaymentFailed, async ({ event }) => { // Handle failed payment }); handler.on(WebhookEventType.InvoiceGenerated, async ({ event }) => { // Handle generated invoice }); } })

Give your agent this brain