Skip to content

[Bug]: previewUpdate endpoint returns wrong values #106

Description

@stpp2

What happened?

The previewUpdate endpoint is wrongly calculating credits and this affects both the Paddle UI and any API call to that endpoint. (using Paddle Billing)

When credits exist on a subscription, proration is miscalculated.
This returns wrong values for future payments.

While this only affects previews rather than any live date, it's still a critical issue with the API.

Steps to reproduce

  1. Create a new subscription with a couple of recurring products.
  2. Remove one product with prorated_immediately option.
  3. Use the previewUpdate endpoint while adding another product that exceeds the current amount of available credits.
    ...

The number returned for the "Next payment" is wrong.
(After completing the change, it does return the correct value)

What did you expect to happen?

No response

Logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions