Ryan from Schematic shows how to launch checkout from anywhere in your app, not just the customer portal. Click a button on a paywall or usage-limit screen and the checkout flow opens instantly. The docs include code examples and error handling.
Chapters
Hi, I'm Ryan, a developer at Schematic, and we recently launched a feature that should make our drop-in components even better. Right now you're looking at our default customer portal where you can look at your usage as well as change plan if you'd like to check out and upgrade to a better plan. One of the common requests we get was a way to launch into the checkout flow from other places, maybe a paywall that you've shown users or a notification that they've hit 90% of their limit in a key feature and to use more they're going to need to upgrade. Well, now you can. There's a simple demo of this feature in our example app, where from this checkout button, we can launch straight into the checkout flow. Our docs contain everything you need to use this in your code as well, including examples that we provided, which include error handling and loading states. I hope you found this helpful, and I'd love to see what you're able to build with our new custom checkout flow. Thanks.