NeNaD
NeNaD

Reputation: 20374

How to create an invoice for one-time payments in Stripe checkout

So, I noticed the following behavior. When I create a checkout session with at least on recurring item (subscription), an invoice is automatically created. When the customer opens their Customer Portal, he will see the previous invoices for all subscriptions.

But, when I create a checkout session with no recurring items (one-time payment), invoice is not automatically created. Because of that, when customer opens Customer Portal, he will not see invoices for these orders.

I would like to show all customer invoices in the Customer Portal, both for recurring and one-time payments. So, is there a way generate an invoice for one-time payment and link it to the checkout session?

Upvotes: 0

Views: 2672

Answers (2)

Happy
Happy

Reputation: 826

This is now available, but it's a little hidden in the Stripe documentation at the moment, and it's been renamed since the beta checkout invoice feature, which doesn't make it that easy to find. You just need to pass the following for non-reoccurring products...

invoice_creation => true

...when creating your Checkout Session.

Official Stripe documentation here.

Upvotes: 4

NeNaD
NeNaD

Reputation: 20374

I contacted Stripe Support for this:

With regards to the invoices for one time charge, the checkout session for one-time payment doesn't generate an invoice. I understand that it is helpful for your business to create invoices for a one time charge on the checkout session. While there’s currently no way to do that, the workaround we can provide for your customer to see their invoices on the customer portal, is for you to create the invoice for one time charge rather than using the Stripe Checkout.

Upvotes: 1

Related Questions