Skip to content

Conversation

floganz
Copy link
Contributor

@floganz floganz commented May 27, 2025

Context

Current logic for invoice preview does not take into account if existing subscription is in the process of downgrade or upgrade. To generate proper invoice preview we need to slightly adjust data so that subscription state matches one of a new bill run.

Description

Add validation for customer persistence. It improves UX by providing more precise error message for some invalid params.
Add support for proper preview of subscription in a process of being downgraded.

@floganz floganz self-assigned this May 27, 2025
@floganz floganz force-pushed the fix-invoice-preview-issue branch from 20eb1ac to d7dace5 Compare June 3, 2025 07:26
@floganz floganz requested a review from lovrocolic June 3, 2025 07:33
@floganz floganz merged commit cf529a9 into main Jun 9, 2025
14 checks passed
@floganz floganz deleted the fix-invoice-preview-issue branch June 9, 2025 11:52
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.

2 participants