invertase / stripe-firebase-extensions

Repository of Firebase Extensions built by Stripe.
https://firebase.google.com/products/extensions
Apache License 2.0
437 stars 168 forks source link

Automatic invoice creation on payments with: invoice_creation: {enabled: true} #489

Open emilwallner opened 1 year ago

emilwallner commented 1 year ago

Feature request

Extension name: firestore-stripe-payments

Enable automatic invoice creation for payments: _invoicecreation: {enabled: true},

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

Stripe recently enabled invoice creation for payments, this is done automatically for subscriptions, but has to be done manually for payments. A lot of my customer support requests relate to creating invoices for payments, so enabling this API feature would be very much appreciated.

const session = await stripe.checkout.sessions.create({
  mode: 'payment',
  invoice_creation: {enabled: true},
  line_items: [{price: '{{ONE_TIME_PRICE_ID}}', quantity: 1}],
  success_url: 'https://example.com',
  cancel_url: 'https://example.com',
});

Describe the solution you'd like

Copy the value of _invoicecreation: {enabled: true}, to the Stripe API call

Describe alternatives you've considered

Now I have to create it manually.

GautierCo commented 1 year ago

Hello,

I have the same problem now, I want to activate the "invoice_creation" option (see here).

@jsteele-stripe do you have a solution until this feature is implemented?

remilefort commented 1 year ago

Hi @jsteele-stripe I propose a fix on #527 Thank you for reviewing it :) Regards

remilefort commented 1 year ago

Hi @jsteele-stripe, do you know when the PR will be reviewed ? Thanks in advance, Regards Rémi

antoineDievDecath commented 1 year ago

Same problem here, do you have an ETA for the review ?

rbrgnt commented 1 year ago

Hello @jsteele-stripe, do you have any news about the PR ? My coworkers also have the same issue.

Thanks a lot