[PR #179] [MERGED] fix: improve stripe webhook endpoint #776

Closed
opened 2026-02-26 18:48:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/179
Author: @Mythie
Created: 5/31/2023
Status: Merged
Merged: 6/17/2023
Merged by: @Mythie

Base: mainHead: fix/improve-stripe-webhook-endpoint


📝 Commits (1)

  • 19e960f fix: improve stripe webhook endpoint

📊 Changes

1 file changed (+61 additions, -24 deletions)

View changed files

📝 packages/lib/stripe/handlers/webhook.ts (+61 -24)

📄 Description

Improve the stripe webhook endpoint by checking for subscriptions prior to performing an update to handle cases where accounts have no created subscription.

This can happen in sitations such as when a checkout_session has been created but the payment fails.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/179 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 5/31/2023 **Status:** ✅ Merged **Merged:** 6/17/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `fix/improve-stripe-webhook-endpoint` --- ### 📝 Commits (1) - [`19e960f`](https://github.com/documenso/documenso/commit/19e960f5932ce8066cd0abc555c7c38bdaa9a53f) fix: improve stripe webhook endpoint ### 📊 Changes **1 file changed** (+61 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/stripe/handlers/webhook.ts` (+61 -24) </details> ### 📄 Description Improve the stripe webhook endpoint by checking for subscriptions prior to performing an update to handle cases where accounts have no created subscription. This can happen in sitations such as when a checkout_session has been created but the payment fails. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:48:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#776
No description provided.