To create a system where people can click on one item and go directly to checkout, we just condense the process of adding to a collection and sending it to checkout into a single click.
Actions
It’s the same process as setting up a shopping cart, but instead of adding to cart, displaying what’s in the cart, allowing the user to change quantities, then checkout → we configure a button that does two actions in sequence :
clear cart → remove a previously added item. add to cart → adds new item to the empty cart. send to checkout → send the cart and user to Stripe to complete checkout.