mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
rename folder
This commit is contained in:
9
providers/saleor/utils/get-checkout-id.ts
Normal file
9
providers/saleor/utils/get-checkout-id.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import Cookies from 'js-cookie'
|
||||
import { CHECKOUT_ID_COOKIE } from '../const'
|
||||
|
||||
const getCheckoutId = (id?: string) => {
|
||||
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