Add a one-time fee to a Subscription with Checkout

In this episode you’ll learn how to collect a one-time fee in addition to the amounts collected for a recurring Subscription. Brennan walks through the process for creating an InvoiceItem, attaching it to a customer, and passing that customer when creating a CheckoutSession. This is a great tool for adding one-time setup fees, additional features like support, or selling hardware that pairs with a software subscription.

Table of contents

00:00 Introduction
00:44 Setup checkout-single-subscription sample
02:15 Add UI to add the add-on
03:48 Style the new UI
05:23 Handle toggling the add-on
09:41 Create products and prices
12:30 Create the add-on InvoiceItem
15:04 Test the demo
15:53 Adding custom priced add-ons

Presenter

Brennan Kreiman - Integration Engineer at Stripe

Resources

Stripe CLI: https://stripe.com/docs/stripe-cli
Official client library: https://github.com/stripe/stripe-node

Support

If you have a question, please feel free to reach out to our support team at https://support.stripe.com/ or on Discord at https://stripe.com/go/developer-chat.

Updates

Sign up to stay updated with developer news: https://go.stripe.global/dev-digest.

Feedback

If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.

#checkout

Add a one-time fee to a Subscription with Checkout