Skip to content

Feature/81 set stripe default price on service edit#99

Open
achneerov wants to merge 1 commit into
developfrom
feature/81-set-stripe-default-price-on-service-edit
Open

Feature/81 set stripe default price on service edit#99
achneerov wants to merge 1 commit into
developfrom
feature/81-set-stripe-default-price-on-service-edit

Conversation

@achneerov
Copy link
Copy Markdown

Closes #81

Overview

Was supposed to be easy, just add a default price on the create step (called in both create and edit price) but it broke the flow as there is a ARCHIVE ALL THEN CREATE PRICE flow which is no longer allowed as we cannot archive a default price. as such the better is flow is make a new price, set it to default, and then archive whatever is left.

Testing

Tested adding and editing a price, we now see default.

Screenshots / Screencasts

image

…tePrices and listActivePriceIds functions

Replace the previous deactivateActivePricesForProduct function with a more flexible deactivatePrices function that accepts multiple price IDs. Add listActivePriceIds to retrieve active price IDs for a product. Update the updateService function to utilize these new methods for improved price handling.
@achneerov achneerov changed the title refactor(stripe): streamline price management by introducing deactiva… feature 81: set stripe default price on service edit Jun 6, 2026
@achneerov achneerov changed the title feature 81: set stripe default price on service edit Feature/81 set stripe default price on service edit Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant