[PR #3441] [CLOSED] stripe products #4825

Closed
opened 2026-03-13 12:01:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3441
Author: @dagmawibabi
Created: 7/18/2025
Status: Closed

Base: mainHead: stripe-products


📝 Commits (2)

📊 Changes

2 files changed (+715 additions, -0 deletions)

View changed files

📝 packages/stripe/src/index.ts (+311 -0)
packages/stripe/src/products.test.ts (+404 -0)

📄 Description

Closes https://github.com/better-auth/better-auth/issues/1804

This pull request introduces a set of new endpoints for managing Stripe products, enhancing the functionality of the stripe module. The endpoints cover product creation, updating, deletion, retrieval, listing, and searching, along with their integration into the existing endpoints object.

New Stripe Product Management Endpoints:

  • Product Creation Endpoint: Added createProduct to allow the creation of new products with attributes like name, active status, description, tax code, default price, shippable status, and metadata.

  • Product Update Endpoint: Added updateProduct to enable updating existing products using their ID, along with optional attributes like name, active status, description, tax code, shippable status, and metadata.

  • Product Deletion Endpoint: Added deleteProduct for deleting a product by its ID.

  • Product Retrieval Endpoint: Added retrieveProduct to fetch details of a product using its ID.

  • Product Listing and Searching Endpoints:

    • List Products: Added listAllProduct to list products with filters like active status, pagination, IDs, shippable status, and URL.
    • Search Products: Added searchProduct to search products using a query string and pagination options.

Integration:

  • Endpoint Integration: Integrated the newly added productsEndpoints into the endpoints object of the stripe module.

Summary by cubic

Added new endpoints for creating, updating, deleting, retrieving, listing, and searching Stripe products in the stripe module.

  • New Features
    • Endpoints for product management: create, update, delete, retrieve, list, and search.
    • Integrated these endpoints into the main endpoints object.

🔄 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/better-auth/better-auth/pull/3441 **Author:** [@dagmawibabi](https://github.com/dagmawibabi) **Created:** 7/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `stripe-products` --- ### 📝 Commits (2) - [`b9ceaf6`](https://github.com/better-auth/better-auth/commit/b9ceaf68217f0e1ce537ebf2b6e8d6abe585818e) stripe products - [`7aaa163`](https://github.com/better-auth/better-auth/commit/7aaa1633e7e65057c1c94ad59f34d45a193f98da) stripe products ### 📊 Changes **2 files changed** (+715 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/stripe/src/index.ts` (+311 -0) ➕ `packages/stripe/src/products.test.ts` (+404 -0) </details> ### 📄 Description Closes https://github.com/better-auth/better-auth/issues/1804 This pull request introduces a set of new endpoints for managing Stripe products, enhancing the functionality of the `stripe` module. The endpoints cover product creation, updating, deletion, retrieval, listing, and searching, along with their integration into the existing `endpoints` object. ### New Stripe Product Management Endpoints: * **Product Creation Endpoint**: Added `createProduct` to allow the creation of new products with attributes like name, active status, description, tax code, default price, shippable status, and metadata. * **Product Update Endpoint**: Added `updateProduct` to enable updating existing products using their ID, along with optional attributes like name, active status, description, tax code, shippable status, and metadata. * **Product Deletion Endpoint**: Added `deleteProduct` for deleting a product by its ID. * **Product Retrieval Endpoint**: Added `retrieveProduct` to fetch details of a product using its ID. * **Product Listing and Searching Endpoints**: - **List Products**: Added `listAllProduct` to list products with filters like active status, pagination, IDs, shippable status, and URL. - **Search Products**: Added `searchProduct` to search products using a query string and pagination options. ### Integration: * **Endpoint Integration**: Integrated the newly added `productsEndpoints` into the `endpoints` object of the `stripe` module. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added new endpoints for creating, updating, deleting, retrieving, listing, and searching Stripe products in the stripe module. - **New Features** - Endpoints for product management: create, update, delete, retrieve, list, and search. - Integrated these endpoints into the main endpoints object. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:01:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#4825