Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoice() method of subscription creates empty invoice #1680

Open
bbprojectnet opened this issue Jun 6, 2024 · 1 comment
Open

invoice() method of subscription creates empty invoice #1680

bbprojectnet opened this issue Jun 6, 2024 · 1 comment
Assignees

Comments

@bbprojectnet
Copy link

Cashier Stripe Version

15.2

Laravel Version

11

PHP Version

8.3.7

Database Driver & Version

PostgreSQL 16

Description

As described in the method invoice() of subscription: "Invoice the subscription outside of the regular billing cycle." should generate new invoice in the middle of cycle. Unfortunately, the invoice is for 0.00 despite a different balance on the upcoming invoice.

Maybe I misunderstand the intention of this method, but is there a way to invoice during the cycle and thus reset it?

Steps To Reproduce

  1. Create subscription with metered price.
  2. Add some usage.
  3. Invoke invoice() method of subscription.

Result: empty invoice was created, the user's balance has not changed (it has not been paid).

@driesvints
Copy link
Member

Hi @bbprojectnet, sorry I kind of lost track of this one. Could you provide me with a repo to reproduce this?

laravel new bug-report --github="--public"

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

No branches or pull requests

2 participants