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
- Create a new subscription with a couple of recurring products.
- Remove one product with
prorated_immediately option.
- 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
What happened?
The
previewUpdateendpoint 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
prorated_immediatelyoption.previewUpdateendpoint 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