Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
So, I was trying to addLineItem to checkout using storefront api on a regular checkout. What I tried is -
var ck_id = "{{ checkout.id }}";
ck_id = btoa('gid://shopify/Checkout/'+ck_id);
But in response it says, "Checkout doesn't exist" which means my checkout id conversion isn't really working. Any thoughts?