mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
saleor: initial cart integration
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import Cookies from 'js-cookie'
|
||||
import { CHECKOUT_ID_COOKIE } from '../const'
|
||||
|
||||
const getCheckoutId = (id?: string) => {
|
||||
return id
|
||||
const r = Cookies.get(CHECKOUT_ID_COOKIE)?.split(":") || [];
|
||||
return { checkoutId: r[0], checkoutToken: r[1] }
|
||||
}
|
||||
|
||||
export default getCheckoutId
|
||||
|
Reference in New Issue
Block a user