Forum Academy Marketplace Showcase Pricing Features

New “Create An Invoice” action for Stripe

Hi everyone,

Just wanted to share that we’re releasing a small update in features that will appear in both V2 and V3 of our Stripe plugin. Shoutout to @charlotte for building this feature!

You can now create invoices directly using the Stripe plugin with the “Create An Invoice” action. See documentation (Stripe - Bubble Docs) for more details.

The action requires you to enter in the customer you’re charging in the User field. It will then attach any pending invoice items on this user onto this draft invoice. If you additionally add a subscription ID, the draft invoice will not only have existing pending invoice items on the user, but it’ll also have pending invoice items from the subscription. You can also enable automatic collection to allow Stripe’s Smart Retries feature to retry on failed payments for this invoice.

When you use “Create An Invoice” in a workflow, it will return an invoice object. You can retrieve the id of the invoice by using “result of the previous step” from the previous workflow that creates the invoice.

We hope you enjoy this feature! As we look towards the new year, we’re looking at how we can improve Stripe, so feel free to use this thread to comment on any other features you’d like to see us add onto our Stripe plugin.

11 Likes

Thanks for the update @grace.hong !

@luke2

1 Like

Hi Grace,

Great to see you are improving the Stripe integration.

A much needed Stripe improvement would be for the “Subscribe the user to a plan” workflow to return the “id” field. Currently only the “subscription id” and the “price id” are returned, but it would be super useful to also get the unique “id” field as per the Stripe API docs.

1 Like

Hello thank you, the “create an invoice” should be automatically generated with the pending invoices line ? or we must indicate which line to add in the invoice ? on my side the invoice creation only creates draft invoices impossible to add products. … can you helpme ?

Hello if someone have same problem as me, there has been an update that requires filling “pending_invoice_items_behavior” the plugin does not allow to do so.
Maybe in future version…
I hope I was able to help