stripe / stripe-node

Node.js library for the Stripe API.
https://stripe.com
MIT License
3.89k stars 753 forks source link

Prevent Instant Invoice Generation Upon Subscription Creation While Accruing Charges #2183

Closed dev-bilal-raza closed 2 months ago

dev-bilal-raza commented 2 months ago

Is your feature request related to a problem? Please describe.

I am currently using Stripe to manage subscriptions for my platform. My use case requires users to incur prorated charges from the day they sign up (e.g., September 20th), but I don't want an invoice to be generated until the end of the billing cycle (e.g., October 5th).

Currently, Stripe generates an instant invoice when a subscription is created, even if the subscription is prorated. However, my platform needs to:

Describe the solution you'd like

Steps to Reproduce:

  1. Create a subscription with proration enabled (proration_behavior: "create_prorations").
  2. Set the billing_cycle_anchor to a future date (e.g., October 5th).
  3. Stripe immediately generates a prorated invoice upon subscription creation.

Expected Behavior:

The platform should allow charges to accrue without generating an immediate invoice. Instead, a single consolidated invoice should be generated on the next billing date (October 5th), covering both the prorated charges and the next full month's subscription.

Current Behavior:

Describe alternatives you've considered

Request:

Could Stripe consider implementing functionality to defer invoicing entirely until the next billing cycle anchor (e.g., October 5th), even when prorated charges are incurred? This would prevent instant invoices and allow for more flexibility in billing periods.

Thank you for your time and support!

Additional context

What I Have Tried:

remi-stripe commented 2 months ago

@dev-bilal-raza Github issues are limited to bugs or feature requests with the SDK itself. This is more a feature request for the API which you should flag to our support team instead: https://support.stripe.com/contact