createCheckout
This function takes the cart and calls the Fullcart API endpoint, which then return a Stripe checkout session.
This function then redirects the user to the Stripe checkout page.
Example
import { updateQuantity } from "fullcart"
updateQuantity("your-product-id", 1)updateQuantity("your-product-id", 5)updateQuantity("your-product-id", -1)updateQuantity("your-product-id", -8)