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.
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
Brennan Kreiman - Integration Engineer at Stripe
Sign up to stay updated with developer news: https://go.stripe.global/dev-digest.
If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.