4
0
forked from crowetic/commerce
commerce/framework/shopify/utils/get-checkout-id.ts
2021-02-04 16:03:52 +02:00

11 lines
261 B
TypeScript

import Cookies from 'js-cookie'
import { SHOPIFY_CHECKOUT_COOKIE } from '..'
const getCheckoutId = (id?: string) => {
const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_COOKIE)
console.log(checkoutID)
return checkoutID
}
export default getCheckoutId